aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/util.lua
diff options
context:
space:
mode:
authorMatthieu Coudron <mcoudron@hotmail.com>2021-02-15 12:35:45 +0100
committerMatthieu Coudron <mcoudron@hotmail.com>2021-02-15 12:38:25 +0100
commit259775cf8860ae75c8b4962d50f5c5ba68dfae46 (patch)
tree6e0fba0751e0ba2cbfd236a5da38a020bae076bf /lua/lspconfig/util.lua
parent[docgen] Update CONFIG.md (diff)
downloadnvim-lspconfig-259775cf8860ae75c8b4962d50f5c5ba68dfae46.tar
nvim-lspconfig-259775cf8860ae75c8b4962d50f5c5ba68dfae46.tar.gz
nvim-lspconfig-259775cf8860ae75c8b4962d50f5c5ba68dfae46.tar.bz2
nvim-lspconfig-259775cf8860ae75c8b4962d50f5c5ba68dfae46.tar.lz
nvim-lspconfig-259775cf8860ae75c8b4962d50f5c5ba68dfae46.tar.xz
nvim-lspconfig-259775cf8860ae75c8b4962d50f5c5ba68dfae46.tar.zst
nvim-lspconfig-259775cf8860ae75c8b4962d50f5c5ba68dfae46.zip
lspconfig: use vim.notify to warn of absent LSP executable
Diffstat (limited to 'lua/lspconfig/util.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()