From a7d7520bc84269fd29ae265f6142897ccd58d5c6 Mon Sep 17 00:00:00 2001 From: William Boman Date: Thu, 30 Sep 2021 21:41:49 +0200 Subject: fix logging at correct level, also add :LspInstallLog command --- plugin/nvim-lsp-installer.vim | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'plugin') diff --git a/plugin/nvim-lsp-installer.vim b/plugin/nvim-lsp-installer.vim index f8458f44..0a3b29a6 100644 --- a/plugin/nvim-lsp-installer.vim +++ b/plugin/nvim-lsp-installer.vim @@ -40,12 +40,19 @@ function! s:LspInstallInfo() abort lua require'nvim-lsp-installer'.display() endfunction +function! s:LspInstallLog() abort + let l:log_file = luaeval("require'nvim-lsp-installer.log'.outfile") + tabnew + exe 'e' .. l:log_file +endfunction + command! -nargs=+ -complete=custom,s:LspInstallCompletion LspInstall exe s:LspInstall("") command! -nargs=+ -complete=custom,s:LspUninstallCompletion LspUninstall exe s:LspUninstall("") command! LspUninstallAll call s:LspUninstallAll() command! LspPrintInstalled call s:LspPrintInstalled() command! LspInstallInfo call s:LspInstallInfo() +command! LspInstallLog call s:LspInstallLog() autocmd User LspAttachBuffers lua require"nvim-lsp-installer".lsp_attach_proxy() -- cgit v1.2.3-70-g09d2