diff options
| -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.', -}) |
