aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2021-02-15 21:41:50 -0800
committerGitHub <noreply@github.com>2021-02-15 21:41:50 -0800
commit8580b650b30052dd60d6ae7797cea1eaf98997a6 (patch)
tree6e0fba0751e0ba2cbfd236a5da38a020bae076bf /lua
parent[docgen] Update CONFIG.md (diff)
parentlspconfig: use vim.notify to warn of absent LSP executable (diff)
downloadnvim-lspconfig-8580b650b30052dd60d6ae7797cea1eaf98997a6.tar
nvim-lspconfig-8580b650b30052dd60d6ae7797cea1eaf98997a6.tar.gz
nvim-lspconfig-8580b650b30052dd60d6ae7797cea1eaf98997a6.tar.bz2
nvim-lspconfig-8580b650b30052dd60d6ae7797cea1eaf98997a6.tar.lz
nvim-lspconfig-8580b650b30052dd60d6ae7797cea1eaf98997a6.tar.xz
nvim-lspconfig-8580b650b30052dd60d6ae7797cea1eaf98997a6.tar.zst
nvim-lspconfig-8580b650b30052dd60d6ae7797cea1eaf98997a6.zip
Merge pull request #735 from teto/notify
lspconfig: use vim.notify to warn of absent LSP executable
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/util.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lspconfig/util.lua b/lua/lspconfig/util.lua
index de0e3f02..a6dabd78 100644
--- a/lua/lspconfig/util.lua
+++ b/lua/lspconfig/util.lua
@@ -245,7 +245,7 @@ function M.server_per_root_dir_manager(_make_config)
.."See server documentation.", new_config.name))
return
elseif vim.fn.executable(new_config.cmd[1]) == 0 then
- print(string.format("Error, cmd [%q] is not executable.", new_config.cmd[1]))
+ vim.notify(string.format("cmd [%q] is not executable.", new_config.cmd[1]), vim.log.levels.Error)
return
end
new_config.on_exit = M.add_hook_before(new_config.on_exit, function()