Skip to content

Commit ca4f953

Browse files
committed
Recreate LspLog command
1 parent 06beed8 commit ca4f953

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

lua/commands.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ function Commands:setup()
88
function() require("nikero.command_palette"):show() end,
99
{ desc = "Command Palette" }
1010
)
11+
12+
vim.api.nvim_create_user_command("LspLog", function()
13+
local lsp_log_path = vim.fs.joinpath(vim.fn.stdpath("state"), "lsp.log")
14+
vim.cmd.tabnew(lsp_log_path)
15+
vim.bo.modifiable = false
16+
end, { desc = "Command Palette" })
1117
end
1218

1319
return Commands

lua/keymaps.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ keymaps:add_multiple({
152152
{ "n", "gri", false },
153153
{ "n", "grt", false },
154154
{ "n", "gra", false },
155+
{ "n", "<leader>li", function() vim.cmd.checkhealth("lsp") end, { desc = "LSP information" } },
155156
{
156157
{ "n", "x" },
157158
"<leader>la",

lua/plugins/language/support.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ return {
2121
end,
2222
},
2323
},
24-
keys = { { "<leader>li", vim.cmd.LspInfo, desc = "LSP information" } },
2524
opts = {
2625
automatic_enable = {
2726
exclude = { "rust_analyzer" },

0 commit comments

Comments
 (0)