File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -25,12 +25,12 @@ local function store_client_id(id)
25
25
M .id = id
26
26
end
27
27
28
+ local function reuse_client (client , conf )
29
+ return client .config .root_dir == conf .root_dir and client .name == conf .name
30
+ end
31
+
28
32
local lsp_start = vim .lsp .start
29
33
if not lsp_start then
30
- local function reuse_client (client , conf )
31
- return client .config .root_dir == conf .root_dir and client .name == conf .name
32
- end
33
-
34
34
-- shim for neovim < 0.8.2
35
35
lsp_start = function (lsp_config )
36
36
local bufnr = vim .api .nvim_get_current_buf ()
@@ -97,7 +97,7 @@ function M.buf_attach(force)
97
97
return
98
98
end
99
99
100
- local client_id = lsp_start (M .config )
100
+ local client_id = lsp_start (M .config , { reuse_client = reuse_client , bufnr = M . id } )
101
101
store_client_id (client_id )
102
102
end
103
103
You can’t perform that action at this time.
0 commit comments