aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/server.lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2021-08-12 22:36:23 +0200
committerWilliam Boman <william@redwill.se>2021-08-12 22:40:24 +0200
commit86423357aecf77069e5544ce613dbe0925cabce4 (patch)
treee362c62e54be5fc864bee3a60d911306f1d56f89 /lua/nvim-lsp-installer/server.lua
parentuse vim.notify (diff)
downloadmason-86423357aecf77069e5544ce613dbe0925cabce4.tar
mason-86423357aecf77069e5544ce613dbe0925cabce4.tar.gz
mason-86423357aecf77069e5544ce613dbe0925cabce4.tar.bz2
mason-86423357aecf77069e5544ce613dbe0925cabce4.tar.lz
mason-86423357aecf77069e5544ce613dbe0925cabce4.tar.xz
mason-86423357aecf77069e5544ce613dbe0925cabce4.tar.zst
mason-86423357aecf77069e5544ce613dbe0925cabce4.zip
vim.notify: provide extra options for better interop with nvim-notify
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