aboutsummaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2021-09-30 21:41:49 +0200
committerWilliam Boman <william@redwill.se>2021-09-30 21:41:49 +0200
commita7d7520bc84269fd29ae265f6142897ccd58d5c6 (patch)
tree6003c28d3e3fa8b7afa07acfc12a52c799a320c6 /plugin
parentfeat(ui): add a popup option (#100) (diff)
downloadmason-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 'plugin')
-rw-r--r--plugin/nvim-lsp-installer.vim7
1 files changed, 7 insertions, 0 deletions
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("<args>")
command! -nargs=+ -complete=custom,s:LspUninstallCompletion LspUninstall exe s:LspUninstall("<args>")
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()