aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/server.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/nvim-lsp-installer/server.lua')
-rw-r--r--lua/nvim-lsp-installer/server.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/lua/nvim-lsp-installer/server.lua b/lua/nvim-lsp-installer/server.lua
index a49c751a..5747f39e 100644
--- a/lua/nvim-lsp-installer/server.lua
+++ b/lua/nvim-lsp-installer/server.lua
@@ -1,3 +1,4 @@
+local notify = require("nvim-lsp-installer.notify")
local fs = require("nvim-lsp-installer.fs")
local path = require("nvim-lsp-installer.path")
@@ -67,12 +68,14 @@ function M.Server:install()
self:create_root_dir()
+ notify(("Installing %s…"):format(self.name))
+
self._installer(self, function (success, result)
if not success then
- vim.notify(("Server installation failed for %s. %s"):format(self.name, result), vim.log.levels.ERROR)
+ notify(("Server installation failed for %s. %s"):format(self.name, result), vim.log.levels.ERROR)
pcall(self.uninstall, self)
else
- vim.notify(("Successfully installed %s"):format(self.name))
+ notify(("Successfully installed %s"):format(self.name))
end
end)
end