diff --git a/autoload/lsp/lsp.vim b/autoload/lsp/lsp.vim index d6e0d54c..3e6461b9 100644 --- a/autoload/lsp/lsp.vim +++ b/autoload/lsp/lsp.vim @@ -547,7 +547,7 @@ enddef # Restart the LSP server for the current buffer def RestartServer() - var lspservers: list> = buf.CurbufGetServers() + var lspservers: list> = buf.CurbufGetServers()->copy() if lspservers->empty() util.WarnMsg($'No Lsp servers found for "{@%}"') return