From 2972d9264b3de9dbd024f719e4746bb6bea36e30 Mon Sep 17 00:00:00 2001 From: William Boman Date: Sun, 22 May 2022 15:39:16 +0200 Subject: feat: add :LspLog command #1917 --- lua/lspconfig.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lua') diff --git a/lua/lspconfig.lua b/lua/lspconfig.lua index 8404632d..b99aa6ea 100644 --- a/lua/lspconfig.lua +++ b/lua/lspconfig.lua @@ -21,6 +21,13 @@ function M._root._setup() '-nargs=0', description = '`:LspInfo` Displays attached, active, and configured language servers', }, + LspLog = { + function() + vim.cmd(string.format('tabnew %s', vim.lsp.get_log_path())) + end, + '-nargs=0', + description = "`:LspLog` Opens the Nvim LSP client log.", + }, LspStart = { function(server_name) if server_name then -- cgit v1.2.3-70-g09d2