diff options
| author | William Boman <william@redwill.se> | 2022-05-12 19:10:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-12 19:10:33 +0200 |
| commit | e55143c2b690b397d5d1f398f495116b93e91011 (patch) | |
| tree | 3a5d399ae2792adc0a1552b9cf87591542196ee3 /lua/nvim-lsp-installer/middleware.lua | |
| parent | feat: patch :LspInfo's "cmd is executable" diagnostic message (#691) (diff) | |
| download | mason-e55143c2b690b397d5d1f398f495116b93e91011.tar mason-e55143c2b690b397d5d1f398f495116b93e91011.tar.gz mason-e55143c2b690b397d5d1f398f495116b93e91011.tar.bz2 mason-e55143c2b690b397d5d1f398f495116b93e91011.tar.lz mason-e55143c2b690b397d5d1f398f495116b93e91011.tar.xz mason-e55143c2b690b397d5d1f398f495116b93e91011.tar.zst mason-e55143c2b690b397d5d1f398f495116b93e91011.zip | |
feat: notify when server is installed via automatic_installation mechanism (#692)
Diffstat (limited to 'lua/nvim-lsp-installer/middleware.lua')
| -rw-r--r-- | lua/nvim-lsp-installer/middleware.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lua/nvim-lsp-installer/middleware.lua b/lua/nvim-lsp-installer/middleware.lua index 12eb586f..44af9f0f 100644 --- a/lua/nvim-lsp-installer/middleware.lua +++ b/lua/nvim-lsp-installer/middleware.lua @@ -1,4 +1,5 @@ local util = require "lspconfig.util" +local notify = require "nvim-lsp-installer.notify" local servers = require "nvim-lsp-installer.servers" local settings = require "nvim-lsp-installer.settings" local functional = require "nvim-lsp-installer.core.functional" @@ -44,6 +45,7 @@ function M.register_lspconfig_hook() if server:is_installed() then merge_in_place(config, server._default_options) elseif should_auto_install(server.name) then + notify("(automatic installation) Installing LSP server: " .. server.name) server:install() end end |
