From 86423357aecf77069e5544ce613dbe0925cabce4 Mon Sep 17 00:00:00 2001 From: William Boman Date: Thu, 12 Aug 2021 22:36:23 +0200 Subject: vim.notify: provide extra options for better interop with nvim-notify --- lua/nvim-lsp-installer/server.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lua/nvim-lsp-installer/server.lua') 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 -- cgit v1.2.3-70-g09d2