From 0a6f436806c12827518947c85cea20f05227f542 Mon Sep 17 00:00:00 2001 From: Krzysztof Sachanowicz Date: Thu, 9 Nov 2023 17:31:18 +0100 Subject: [PATCH] don't register server twice --- autoload/lsp.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/autoload/lsp.vim b/autoload/lsp.vim index a2ab0106c..e3d7b60e0 100644 --- a/autoload/lsp.vim +++ b/autoload/lsp.vim @@ -211,6 +211,7 @@ function! lsp#register_server(server_info) abort let l:server_name = a:server_info['name'] if has_key(s:servers, l:server_name) call lsp#log('lsp#register_server', 'server already registered', l:server_name) + return endif " NOTE: workspace_folders is dict for faster lookup instead of array let s:servers[l:server_name] = {