diff options
| author | Steve Vermeulen <sfvermeulen@gmail.com> | 2025-06-02 17:55:41 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-02 02:55:41 -0700 |
| commit | cf24921259b4db4dc8dbc184fbc22df525cfc798 (patch) | |
| tree | 92d77e13de081b86398fa8c0f71a99c6036bc6d5 /plugin | |
| parent | docs: update configs.md (diff) | |
| download | nvim-lspconfig-cf24921259b4db4dc8dbc184fbc22df525cfc798.tar nvim-lspconfig-cf24921259b4db4dc8dbc184fbc22df525cfc798.tar.gz nvim-lspconfig-cf24921259b4db4dc8dbc184fbc22df525cfc798.tar.bz2 nvim-lspconfig-cf24921259b4db4dc8dbc184fbc22df525cfc798.tar.lz nvim-lspconfig-cf24921259b4db4dc8dbc184fbc22df525cfc798.tar.xz nvim-lspconfig-cf24921259b4db4dc8dbc184fbc22df525cfc798.tar.zst nvim-lspconfig-cf24921259b4db4dc8dbc184fbc22df525cfc798.zip | |
fix: enable :LspLog command in Nvim 0.11.2 #3883
Diffstat (limited to 'plugin')
| -rw-r--r-- | plugin/lspconfig.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugin/lspconfig.lua b/plugin/lspconfig.lua index d77000e8..4fb5e74a 100644 --- a/plugin/lspconfig.lua +++ b/plugin/lspconfig.lua @@ -67,6 +67,12 @@ end -- script in scriptnames to be executed is lspconfig. api.nvim_create_user_command('LspInfo', ':checkhealth vim.lsp', { desc = 'Alias to `:checkhealth vim.lsp`' }) +api.nvim_create_user_command('LspLog', function() + vim.cmd(string.format('tabnew %s', lsp.get_log_path())) +end, { + desc = 'Opens the Nvim LSP client log.', +}) + if vim.version.ge(vim.version(), { 0, 11, 2 }) then local complete_client = function(arg) return vim @@ -229,9 +235,3 @@ end, { nargs = '?', complete = lsp_get_active_clients, }) - -api.nvim_create_user_command('LspLog', function() - vim.cmd(string.format('tabnew %s', lsp.get_log_path())) -end, { - desc = 'Opens the Nvim LSP client log.', -}) |
