f3fora / nvim-texlabconfig

nvim-texlabconfig: Forward and Inverse Search for Texlab and neovim
The Unlicense
35 stars 2 forks source link

'Error when opening file: open ~/.cache/nvim/nvim-texlabconfig.json: no such file or directory' but it exists #23

Open highjeans opened 1 month ago

highjeans commented 1 month ago

I am trying to get inverse search and forward search to work with skim on MacOS with neovim. Forward search works perfectly, but when I try to do an inverse search, skim seems to do nothing. When I run the built executable that is passed to skim, it gives the error Error when opening file: open ~/.cache/nvim/nvim-texlabconfig.json: no such file or directory. However, when I run ls ~/.cache/nvim/ it should that nvim-texlabconfig.json exists. Even if I copy the path from the error and paste it as an argument to vim it opens properly and has text in it. How can I fix this?

highjeans commented 1 month ago

Ok passing in absolute paths make it work properly, but how am I supposed to do this through Skim as its still not doing anything?

f3fora commented 3 weeks ago

but how am I supposed to do this through Skim as its still not doing anything?

I do not have a mac, so I cannot help you directly. In theory, Inverse search is activated by pressing Shift and Command, then clicking the text you want to search. For more info on inverse search. You should look for synctex in its documentation.

highjeans commented 3 weeks ago

@f3fora That is what I am currently doing, but it does nothing.

winstxnhdw commented 2 weeks ago

Looks like the same problem I had while writing #21