aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2022-02-11 10:12:15 -0800
committerGitHub <noreply@github.com>2022-02-11 10:12:15 -0800
commitdca9cfcda9c95a3820b6443084a203bba260197a (patch)
tree776b7d1a8d8a0841fcdc3510c345638a13d365a9 /lua
parentdocs: update server_configurations.md (diff)
downloadnvim-lspconfig-dca9cfcda9c95a3820b6443084a203bba260197a.tar
nvim-lspconfig-dca9cfcda9c95a3820b6443084a203bba260197a.tar.gz
nvim-lspconfig-dca9cfcda9c95a3820b6443084a203bba260197a.tar.bz2
nvim-lspconfig-dca9cfcda9c95a3820b6443084a203bba260197a.tar.lz
nvim-lspconfig-dca9cfcda9c95a3820b6443084a203bba260197a.tar.xz
nvim-lspconfig-dca9cfcda9c95a3820b6443084a203bba260197a.tar.zst
nvim-lspconfig-dca9cfcda9c95a3820b6443084a203bba260197a.zip
feat: remove warning when server fails to start (#1711)
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/configs.lua8
1 files changed, 0 insertions, 8 deletions
diff --git a/lua/lspconfig/configs.lua b/lua/lspconfig/configs.lua
index 32bc04d5..8dbef2aa 100644
--- a/lua/lspconfig/configs.lua
+++ b/lua/lspconfig/configs.lua
@@ -116,10 +116,6 @@ function configs.__newindex(t, config_name, config_def)
local pseudo_root = util.path.dirname(util.path.sanitize(bufname))
local client_id = M.manager.add(pseudo_root, true)
vim.lsp.buf_attach_client(vim.api.nvim_get_current_buf(), client_id)
- else
- vim.notify(
- string.format('[lspconfig] Autostart for %s failed: matching root directory not detected.', config_name)
- )
end
end
@@ -237,10 +233,6 @@ function configs.__newindex(t, config_name, config_def)
elseif config.single_file_support then
local pseudo_root = util.path.dirname(buf_path)
id = manager.add(pseudo_root, true)
- else
- vim.notify(
- string.format('[lspconfig] Autostart for %s failed: matching root directory not detected.', config_name)
- )
end
if id then