diff options
| author | William Boman <william@redwill.se> | 2021-09-30 21:41:49 +0200 |
|---|---|---|
| committer | William Boman <william@redwill.se> | 2021-09-30 21:41:49 +0200 |
| commit | a7d7520bc84269fd29ae265f6142897ccd58d5c6 (patch) | |
| tree | 6003c28d3e3fa8b7afa07acfc12a52c799a320c6 /lua/nvim-lsp-installer/ui/status-win/init.lua | |
| parent | feat(ui): add a popup option (#100) (diff) | |
| download | mason-a7d7520bc84269fd29ae265f6142897ccd58d5c6.tar mason-a7d7520bc84269fd29ae265f6142897ccd58d5c6.tar.gz mason-a7d7520bc84269fd29ae265f6142897ccd58d5c6.tar.bz2 mason-a7d7520bc84269fd29ae265f6142897ccd58d5c6.tar.lz mason-a7d7520bc84269fd29ae265f6142897ccd58d5c6.tar.xz mason-a7d7520bc84269fd29ae265f6142897ccd58d5c6.tar.zst mason-a7d7520bc84269fd29ae265f6142897ccd58d5c6.zip | |
fix logging at correct level, also add :LspInstallLog command
Diffstat (limited to 'lua/nvim-lsp-installer/ui/status-win/init.lua')
| -rw-r--r-- | lua/nvim-lsp-installer/ui/status-win/init.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lua/nvim-lsp-installer/ui/status-win/init.lua b/lua/nvim-lsp-installer/ui/status-win/init.lua index 7ac5da64..57b215e4 100644 --- a/lua/nvim-lsp-installer/ui/status-win/init.lua +++ b/lua/nvim-lsp-installer/ui/status-win/init.lua @@ -1,7 +1,7 @@ local Ui = require "nvim-lsp-installer.ui" local fs = require "nvim-lsp-installer.fs" local settings = require "nvim-lsp-installer.settings" -local Log = require "nvim-lsp-installer.log" +local log = require "nvim-lsp-installer.log" local Data = require "nvim-lsp-installer.data" local display = require "nvim-lsp-installer.ui.display" @@ -275,7 +275,7 @@ local function init(all_servers) state.servers[server.name].installer.is_running = true end) - Log.debug("Starting install", server.name, requested_version) + log.debug("Starting install", server.name, requested_version) server:install_attached({ requested_server_version = requested_version, @@ -302,7 +302,7 @@ local function init(all_servers) }, function(success) mutate_state(function(state) -- can we log each line separately? - Log.debug("Installer output", server.name, state.servers[server.name].installer.tailed_output) + log.debug("Installer output", server.name, state.servers[server.name].installer.tailed_output) if success then -- release stdout/err output table.. hopefully ¯\_(ツ)_/¯ state.servers[server.name].installer.tailed_output = {} @@ -343,10 +343,10 @@ local function init(all_servers) return { open = open, install_server = function(server, version) - Log.debug("Installing server", server, version) + log.debug("Installing server", server, version) local server_state = get_state().servers[server.name] if server_state and (server_state.installer.is_running or server_state.installer.is_queued) then - Log.debug("Installer is already queued/running", server.name) + log.debug("Installer is already queued/running", server.name) return end mutate_state(function(state) @@ -359,7 +359,7 @@ local function init(all_servers) uninstall_server = function(server) local server_state = get_state().servers[server.name] if server_state and (server_state.installer.is_running or server_state.installer.is_queued) then - Log.debug("Installer is already queued/running", server.name) + log.debug("Installer is already queued/running", server.name) return end |
