From 6b8093c1f18f10a40121ab60957985cbf8da1987 Mon Sep 17 00:00:00 2001 From: Matthieu Coudron Date: Fri, 7 Feb 2020 01:15:09 +0100 Subject: checkhealth: add checkhealth nvim_lsp command Only check command for now --- lua/nvim_lsp/util.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lua/nvim_lsp/util.lua') diff --git a/lua/nvim_lsp/util.lua b/lua/nvim_lsp/util.lua index 73d8e6cf..02061976 100644 --- a/lua/nvim_lsp/util.lua +++ b/lua/nvim_lsp/util.lua @@ -208,7 +208,7 @@ end)() -- Returns a function(root_dir), which, when called with a root_dir it hasn't -- seen before, will call make_config(root_dir) and start a new client. -function M.server_per_root_dir_manager(make_config) +function M.server_per_root_dir_manager(_make_config) local clients = {} local manager = {} @@ -218,8 +218,7 @@ function M.server_per_root_dir_manager(make_config) -- Check if we have a client alredy or start and store it. local client_id = clients[root_dir] if not client_id then - local new_config = make_config(root_dir) - new_config.root_dir = root_dir + local new_config = _make_config(root_dir) new_config.on_exit = M.add_hook_before(new_config.on_exit, function() clients[root_dir] = nil end) -- cgit v1.2.3-70-g09d2