From bdfcca4af7ac8171e6d4ae4b375aad61ff747429 Mon Sep 17 00:00:00 2001 From: Raphael Date: Thu, 25 Aug 2022 20:52:34 +0800 Subject: fix: add lsplog command (#2088) --- plugin/lspconfig.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'plugin') diff --git a/plugin/lspconfig.lua b/plugin/lspconfig.lua index 117e51e9..6af2f554 100644 --- a/plugin/lspconfig.lua +++ b/plugin/lspconfig.lua @@ -98,3 +98,9 @@ end, { nargs = '?', complete = lsp_get_active_client_ids, }) + +vim.api.nvim_create_user_command('LspLog', function() + vim.cmd(string.format('tabnew %s', vim.lsp.get_log_path())) +end, { + desc = 'Opens the Nvim LSP client log.', +}) -- cgit v1.2.3-70-g09d2