diff options
Diffstat (limited to 'lua/lspconfig/util.lua')
| -rw-r--r-- | lua/lspconfig/util.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lua/lspconfig/util.lua b/lua/lspconfig/util.lua index c18f3072..98cbc28d 100644 --- a/lua/lspconfig/util.lua +++ b/lua/lspconfig/util.lua @@ -15,6 +15,9 @@ M.default_config = { handlers = {}, } +-- global on_setup hook +M.on_setup = nil + function M.validate_bufnr(bufnr) validate { bufnr = { bufnr, 'n' }, @@ -222,6 +225,10 @@ function M.server_per_root_dir_manager(_make_config) local client_id = clients[root_dir] if not client_id then local new_config = _make_config(root_dir) + -- do nothing if the client is not enabled + if new_config.enabled == false then + return + end --TODO:mjlbach -- these prints only show up with nvim_error_writeln() if not new_config.cmd then print( |
