aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-lsp-installer.lua10
-rw-r--r--lua/nvim-lsp-installer/server.lua4
2 files changed, 7 insertions, 7 deletions
diff --git a/lua/nvim-lsp-installer.lua b/lua/nvim-lsp-installer.lua
index af6cfc9f..fd14f834 100644
--- a/lua/nvim-lsp-installer.lua
+++ b/lua/nvim-lsp-installer.lua
@@ -74,26 +74,26 @@ end
function M.install(server_name)
local ok, server = M.get_server(server_name)
if not ok then
- return notify(("Unable to find LSP server %s. Error=%s"):format(server_name, server), vim.log.levels.ERROR)
+ return notify(("Unable to find LSP server %s.\n\n%s"):format(server_name, server), vim.log.levels.ERROR)
end
local success, error = pcall(server.install, server)
if not success then
pcall(server.uninstall, server)
- return notify(("Failed to install %s. Error=%s"):format(server_name, vim.inspect(error)), vim.log.levels.ERROR)
+ return notify(("Failed to install %s.\n\n%s"):format(server_name, vim.inspect(error)), vim.log.levels.ERROR)
end
end
function M.uninstall(server_name)
local ok, server = M.get_server(server_name)
if not ok then
- return notify(("Unable to find LSP server %s. Error=%s"):format(server_name, server), vim.log.levels.ERROR)
+ return notify(("Unable to find LSP server %s.\n\n%s"):format(server_name, server), vim.log.levels.ERROR)
end
local success, error = pcall(server.uninstall, server)
if not success then
- notify(("Unable to uninstall %s. Error=%s"):format(server_name, vim.inspect(error)), vim.log.levels.ERROR)
+ notify(("Unable to uninstall %s.\n\n%s"):format(server_name, vim.inspect(error)), vim.log.levels.ERROR)
return success
end
- notify(("Successfully uninstalled %s"):format(server_name))
+ notify(("Successfully uninstalled %s."):format(server_name))
end
return M
diff --git a/lua/nvim-lsp-installer/server.lua b/lua/nvim-lsp-installer/server.lua
index e921d2bc..e4e684b3 100644
--- a/lua/nvim-lsp-installer/server.lua
+++ b/lua/nvim-lsp-installer/server.lua
@@ -70,10 +70,10 @@ function M.Server:install()
self._installer(self, function(success, result)
if not success then
- notify(("Server installation failed for %s. %s"):format(self.name, result), vim.log.levels.ERROR)
+ notify(("Server installation failed for %s.\n\n%s"):format(self.name, result), vim.log.levels.ERROR)
pcall(self.uninstall, self)
else
- notify(("Successfully installed %s"):format(self.name))
+ notify(("Successfully installed %s."):format(self.name))
end
end)
end