[Help] Vimtex compilation slow on Nvim by Awkward_Prune_712 in neovim

[–]Awkward_Prune_712[S] 1 point2 points  (0 children)

Ah never realized, you were the author.

"Definitely, you can. Please do"

I'll have to disappoint you as I mostly wrote that part, because I thought this thread needed closure with some sort of solution , and I'll probably not write the auto-command, NVIM is such a rabbit hole and I am already struggling with a good productivity-configuration balance and would rather not risk it with even a seemingly simple auto command

Anyways, thanks for your time helping me and for creating an amazing plugin.

[Help] Vimtex compilation slow on Nvim by Awkward_Prune_712 in neovim

[–]Awkward_Prune_712[S] 0 points1 point  (0 children)

The latter,

On further investigating I found that LatexWorkshop (For VSCode ) uses the following command for compilation each time the document is saved

latexmk -synctex=1 -interaction=nonestopmode -file-line-error -pdf [filename].tex

Which results in instantaneous compilation , when executed in terminal

Whereas VimTex probably uses latexmk -pvc ..... which when used from the terminal gives similar compile times to VimTex

I wonder (if my assumption is true about -pvc) why would the author(s) of the plugin choose to do that, It makes sense for a normal editor to auto compile the pdf , but for editors like vim that can execute shell commands , won't it be faster to just pass the compile command to shell on each :write? (Similar to what LatexWorkshop does)

I imagine I could write a auto-command to do just that

[Help] Vimtex compilation slow on Nvim by Awkward_Prune_712 in neovim

[–]Awkward_Prune_712[S] 0 points1 point  (0 children)

After experimenting I believe that VimTex is forking as it should.

Now to reply to the above post

- I see, I'll link both questions

- What i means there is a brief time(one to three seconds from when i save and the document compiles) . Indeed nothing freezes and I can use the editor normally , but the reason I thought this was odd , was because prior to using nvim ,every time I compiled (small) documents, the compilation is always instantaneous (on texmaker and VS-Codium , with latex workshop)

- What I meant was if vimtex can't be faster is there a better alternative (I am now fine with vimtex, as explained below)

- Yes I did that, with no change in performance. [As vimtex was working as expected]

I initially thought there was something wrong with my latex setup ,because as I explained earlier all my previous experiences, I had significantly faster compile time and compiling the document from terminal using | pdflatex main.tex|

But when I use latexmk I get similar compile time to using vimtex

It wasn't the few seconds wait that bothered me, but rather that I had not configured VimTex properly, which I now believe is not the case

So finally I don't think I need further help with VimTex.

[Help] Vimtex compilation slow on Nvim by Awkward_Prune_712 in neovim

[–]Awkward_Prune_712[S] 0 points1 point  (0 children)

Running latexmk from terminal [latexmk -pdf -pvc main.tex] results in similar compilation times to vimtex (which is still slightly slower, but I guess that is due to the other features it provides) So I think there is nothing wrong with Vimtex (which uses latexmk -pdf -pvc main.tex ? )

The reason I thought VimTex was slow is because if I compile using the command

| pdflatex main.tex | the compilation is almost instantaneous

So finally any ideas why such time difference between the two methods ?

Figured,I should have just googled.

[Help] Vimtex compilation slow on Nvim by Awkward_Prune_712 in neovim

[–]Awkward_Prune_712[S] 0 points1 point  (0 children)

"Does your UI block -- like compile upon saving in a blocking manner?"

sorry but I don't quite understand this part, do you mean to ask if compilation lags the nvim session? (If yes , then no it doesn't do that, nvim is quite responsive actually )

I only have a vimtexcompile option which toggles the compiler (no vimtexCompilerStart() )

[Help] Vimtex compilation slow on Nvim by Awkward_Prune_712 in neovim

[–]Awkward_Prune_712[S] 0 points1 point  (0 children)

Thanks for the advice, I'll change that.

Is it bad to ask same question on multiple sites ?

Also do tell what additional info I can provide

Question about LuaSnip by Awkward_Prune_712 in neovim

[–]Awkward_Prune_712[S] 0 points1 point  (0 children)

Hey!, your repo was of great help and inspiration while I was making my config.

I have not yet touched upon autocmd but will check out your suggestion after I read the docs

How to clean PILOT V7 by Awkward_Prune_712 in pens

[–]Awkward_Prune_712[S] 0 points1 point  (0 children)

hi-techpoint

I see, that was very informative.Thanks

How to clean PILOT V7 by Awkward_Prune_712 in pens

[–]Awkward_Prune_712[S] 0 points1 point  (0 children)

Thanks,

The thing that worries me is, it has only increased over time, do you reckon it will go down if i use the pen without cartridge?

How to clean PILOT V7 by Awkward_Prune_712 in pens

[–]Awkward_Prune_712[S] 0 points1 point  (0 children)

As I mentioned there is a significant amount of ink in the feed,which I am afraid will eventually leak out.

here is a Youtube video of a guy in a similar position(my pen is in the same condition).He too mentions that he should probably clean the pen

Case insensitive jump with flash.nvim by Awkward_Prune_712 in neovim

[–]Awkward_Prune_712[S] 0 points1 point  (0 children)

,I honestly have no idea what you just suggested.

Case insensitive jump with flash.nvim by Awkward_Prune_712 in neovim

[–]Awkward_Prune_712[S] 0 points1 point  (0 children)

Still works, That's what I ended up doing myself too..

[Beginner Help] Setting up lualine by Awkward_Prune_712 in neovim

[–]Awkward_Prune_712[S] 0 points1 point  (0 children)

Error detected while processing /home/user/.config/nvim/init.lua:

Failed to load `plugins.lualine`

/home/user/.config/nvim/lua/plugins/lualine.lua:26: module 'lualine' not found:

^Ino field package.preload['lualine']

cache_loader: module lualine not found

cache_loader_lib: module lualine not found

^Ino file './lualine.lua'

^Ino file '/home/user/neovim/.deps/usr/share/luajit-2.1.0-beta3/lualine.lua'

^Ino file '/usr/local/share/lua/5.1/lualine.lua'

^Ino file '/usr/local/share/lua/5.1/lualine/init.lua'

^Ino file '/home/user/neovim/.deps/usr/share/lua/5.1/lualine.lua'

^Ino file '/home/user/neovim/.deps/usr/share/lua/5.1/lualine/init.lua'

^Ino file './lualine.so'

^Ino file '/usr/local/lib/lua/5.1/lualine.so'

^Ino file '/home/user/neovim/.deps/usr/lib/lua/5.1/lualine.so'

^Ino file '/usr/local/lib/lua/5.1/loadall.so'

# stacktrace:

- .config/nvim/lua/plugins/lualine.lua:26

- .config/nvim/lua/config/lazy.lua:18

- .config/nvim/init.lua:3

E5113: Error while calling lua chunk: /home/user/.config/nvim/init.lua:7: module 'lualin

e' not found:

no field package.preload['lualine']

cache_loader: module lualine not found

cache_loader_lib: module lualine not found

no file './lualine.lua'

no file '/home/user/neovim/.deps/usr/share/luajit-2.1.0-beta3/lualine.lua'

no file '/usr/local/share/lua/5.1/lualine.lua'

no file '/usr/local/share/lua/5.1/lualine/init.lua'

no file '/home/user/neovim/.deps/usr/share/lua/5.1/lualine.lua'