Closed raiansantos closed 6 months ago
I was able to duplicate the issue with a simple create-react-app.
Some tech stuff:
VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Dec 20 2023 11:27:57) Included patches: 1-2181
It seems that keeping buffer opened with set hidden
avoid the issue.
Hey, I have the following configuration in my .vimrc, which sets up typescript and eslint language servers.
When I open a JS or TS file, on the first load I don't get any errors about the code, however after change to another buffer and come back to the previous one, TS returns a lot of errors saying that imports/exports are duplicated. Commenting out eslint stop the issue (what get me to believe that the project setup is OK. Also im not getting errors with VSCode or Vim-CoC).
Keeping ESLint and disabling all capabilities did not work (tried this to understand what capability was giving the issue). It seems that having multiple LSPs registered to the same filetype is giving me the issue.
Also tried to disable other plugins, no success. Commenting out all LSP related configurations (g:lsp_*) did not work as well.