From cf24921259b4db4dc8dbc184fbc22df525cfc798 Mon Sep 17 00:00:00 2001 From: Steve Vermeulen Date: Mon, 2 Jun 2025 17:55:41 +0800 Subject: fix: enable :LspLog command in Nvim 0.11.2 #3883 --- plugin/lspconfig.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugin') 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.', -}) -- cgit v1.2.3-70-g09d2