benbrastmckie / .config

NeoVim configuration optimized for writing in LaTeX
329 stars 262 forks source link

nvim ~/.config/nvim/lua/user/vimtex.lua file is empty #132

Open G0MITA opened 3 weeks ago

G0MITA commented 3 weeks ago

Hello I am new to vim and coding and I have followed your video to setup vim and all that stuff. But when I try to configure the file nvim ~/.config/nvim/lua/user/vimtex.lua I just see an empty file and nothing I can rewrite. And once I tried to copy paste what was standing in that file in the video, but an error message returned. Now I am really just lost and don't know what to do.

benbrastmckie commented 3 weeks ago

Looks like you have the right file here: https://github.com/G0MITA/.config/blob/master/nvim/lua/neotex/plugins/vimtex.lua

Is that different from what you have locally?

G0MITA commented 2 weeks ago

So when I press the command in the video I dont see that document.

G0MITA commented 2 weeks ago

And I also just pressed nvim nvim/lua/neotex/plugins/vimtex.lua and changed the ocular to skim but it still shows me an error in check health at zathura

benbrastmckie commented 2 weeks ago

I made those videos along time ago, so don't really remember all the details and it's a lot of work to go try to figure out what you're talking about.

The way issues work on GitHub is that it's a place for you to provide a detailed description of what you have tried already and where you're hitting trouble in a manner that is clear enough that I can follow as well as being useful to others who might be having similar problems and find it instructive. That way in troubleshooting this issue, we are creating peripheral documentation for this project.

I've been meaning to write more user guide with these kinds of ideas in it, but haven't gotten to it yet,

a-joshuadaniel commented 1 week ago

I had the same error - here is what I did

  1. navigated to ../nvim/lua/neotex/plugins/vimtex.lua
  2. changed vim.g['vimtex_view_method'] = 'zathura_simple' --> vim.g['vimtex_view_method'] = 'skim'
  3. changed vim.g['vimtex_context_pdf_viewer'] = 'okular' --> vim.g['vimtex_context_pdf_viewer'] = 'skim'

works fine now .

(nvim +checkhealth shows no errors under VimTeX~)

@benbrastmckie would love to help update the user guides. trying to get used to git. Many thanks