Replies: 5 comments 1 reply
-
Interesting, thanks for your report. We source configs on compile to pick up changes, but I'm surprised that this results in servers being re-attached - let alone with default settings. Do you know if calling |
Beta Was this translation helpful? Give feedback.
-
I tried calling I also tried to remove the call to The problem only seems be caused when I call |
Beta Was this translation helpful? Give feedback.
-
This was happening to me, my configuration: use {
'neovim/nvim-lspconfig',
config = function()
-- TODO: call lspconfig setup here start a new server every time when run :PackerCompile
-- require('user.plugins.lspconfig').setup()
end,
} |
Beta Was this translation helpful? Give feedback.
-
I have a very similar setup to yours and I am still having the same problem. I don't even know where to start looking in order to fix this issue. I spent a good amount of time tracking this problem, but didn't get very far. At the moment, my current working solution is:
When I recompile without removing the pre-existing file and re-start neovim, I have noticed that |
Beta Was this translation helpful? Give feedback.
-
I have finally managed to track down the bug. Indeed, the problem was calling Thanks @aspeddro for sharing your setup. |
Beta Was this translation helpful? Give feedback.
-
I have a single
init.lua
file with all my Neovim configuration in it. That includes all the plugins which are managed by packer. You can find the file in here (the link points to the lsp section which is causing trouble).I am able to manage all my plugins using Packer. The idea of the file is that plugin specific configuration comes just after the use command. This allow me to quickly see the configuration I am applying to individual plugins.
The only problem that I have with the current setup is that everytime I run
PackerCompile
, a new lsp server gets started. That means that if I callPackerCompile
5 times while working oninit.lua
, I end up with 5 lsp servers for lua. When the servers start this way they do not seem to pickup my configuration, but they get started with the default settings.If I restart Neovim, lsp follows the configuration in
init.lua
and behaves correctly.Any help with fixing this issue would be appreciated, as it's quite annoying when I just want to apply a quick change to
init.lua
and get back to my main work.Beta Was this translation helpful? Give feedback.
All reactions