nvim: fix diagnostic mappings

This commit is contained in:
2023-07-08 15:20:42 +03:00
parent 8db5f38582
commit 3c249fc7b6

View File

@ -76,13 +76,13 @@ vim.keymap.set("n", "<leader>gn", function()
vim.lsp.buf.rename()
end)
vim.keymap.set("n", "<leader>ge", function()
vim.lsp.diagnostic.show_line_diagnostics()
vim.lsp.diagnostic.get_line_diagnostics()
end)
vim.keymap.set("n", "[d", function()
vim.lsp.diagnostic.goto_prev()
vim.diagnostic.goto_prev()
end)
vim.keymap.set("n", "]d", function()
vim.lsp.diagnostic.goto_next()
vim.diagnostic.goto_next()
end)
-- neotest