|
|
@ -50,19 +50,35 @@ return { |
|
|
|
opts.desc = "Go to previous diagnostic" |
|
|
|
keymap.set("n", "[d", vim.diagnostic.goto_prev, opts) -- jump to previous diagnostic in buffer |
|
|
|
|
|
|
|
opts.desc = "Go to previous diagnostic" |
|
|
|
keymap.set("n", "<leader>pd", vim.diagnostic.goto_prev, opts) -- jump to previous diagnostic in buffer |
|
|
|
|
|
|
|
opts.desc = "Go to next diagnostic" |
|
|
|
keymap.set("n", "]d", vim.diagnostic.goto_next, opts) -- jump to next diagnostic in buffer |
|
|
|
|
|
|
|
opts.desc = "Go to next diagnostic" |
|
|
|
keymap.set("n", "<leader>nd", vim.diagnostic.goto_next, opts) -- jump to next diagnostic in buffer |
|
|
|
|
|
|
|
opts.desc = "Go to previous diagnostic (error only)" |
|
|
|
keymap.set("n", "[e", function() |
|
|
|
vim.diagnostic.goto_prev({ severity = vim.diagnostic.severity.ERROR }) |
|
|
|
end, opts) |
|
|
|
|
|
|
|
opts.desc = "Go to previous diagnostic (error only)" |
|
|
|
keymap.set("n", "<leader>pe", function() |
|
|
|
vim.diagnostic.goto_prev({ severity = vim.diagnostic.severity.ERROR }) |
|
|
|
end, opts) |
|
|
|
|
|
|
|
opts.desc = "Go to next diagnostic (error only)" |
|
|
|
keymap.set("n", "]e", function() |
|
|
|
vim.diagnostic.goto_next({ severity = vim.diagnostic.severity.ERROR }) |
|
|
|
end, opts) |
|
|
|
|
|
|
|
opts.desc = "Go to next diagnostic (error only)" |
|
|
|
keymap.set("n", "<leader>ne", function() |
|
|
|
vim.diagnostic.goto_next({ severity = vim.diagnostic.severity.ERROR }) |
|
|
|
end, opts) |
|
|
|
|
|
|
|
opts.desc = "Show documentation for what is under cursor" |
|
|
|
keymap.set("n", "K", vim.lsp.buf.hover, opts) -- show documentation for what is under cursor |
|
|
|
|
|
|
|