From 259775cf8860ae75c8b4962d50f5c5ba68dfae46 Mon Sep 17 00:00:00 2001 From: Matthieu Coudron Date: Mon, 15 Feb 2021 12:35:45 +0100 Subject: lspconfig: use vim.notify to warn of absent LSP executable --- lua/lspconfig/util.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua') 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() -- cgit v1.2.3-70-g09d2