Closed anand-bala closed 2 years ago
Thanks for the detailed report! I was able to reproduce the problem on my machine. The fix itself is quite simple (9f778cc).
There is potentially another problem also, but I will refer you to neovim/nvim-lspconfig#1675 for more details.
Thanks for the ping. 432a7d38acef557c986a258875a2129b2133757f should fix this problem.
Please let me know if one of the issues is still present.
Wow! Thank you for the really quick fix!
UPDATE:
Turns out the original reason I found this bug still doesn't work correctly 😅 . With the same files, if I run the command for textDocument/forwardSearch
, I get an Error
response when using \subimport
but the command works properly for \input
. Note that the only reason I am using \subimport
as opposed to \input
is that the files are nested.
Thanks for your help!
Looks like this is an issue with xelatex not generating the synctex correctly for \subimport
. Thanks for the help!
I am using Neovim's builtin LSP with
texlab
and I noticed thattextDocument/forwardSearch
isn't handled properly for when the project contains a sub-file included using\subimport
from theimport
package. This can be reproduced with the following files:main.tex
:stuff.tex
:Changing the
\subimport{}{stuff}
to\input{stuff}
makes this work as expected.There is potentially another problem also, but I will refer you to neovim/nvim-lspconfig#1675 for more details.