latex-lsp / texlab

An implementation of the Language Server Protocol for LaTeX
GNU General Public License v3.0
1.55k stars 53 forks source link

Terminal title changes to included files with neovim's lsp #547

Closed xlucn closed 2 years ago

xlucn commented 2 years ago

If title option in neovim is set, and there is \include of \input command, the window(terminal) title will be changed to one of the included files. Occurs in neovim's lsp, but not vim + vim-lsp, other lsp client not tested.

Texlab version: v3.3.1

MWE:

An empty test.tex, and main.tex as follows:

\documentclass{article}
\begin{document}
\include{test}
\end{document}

And a test.vimrc:

packadd nvim-lspconfig
filetype on
set title
lua require'lspconfig'.texlab.setup{}

Reproduce

If I change modes in vim, i.e., insert, normal, etc., the title also changes back and forth.

clason commented 2 years ago

That is not related to texlab but to Neovim (as you note yourself since it doesn't happen with other clients). Please report it there. (I'd assume that this is because the client opens all workspace files, so the last one to open sets the title.)

xlucn commented 2 years ago

Thanks, I will open an issue there.