nvim: Remap lsp go to next/previous error
Mapped to `[D` / `]D`, reflecting the capitalization of going to the next general diagnostic (`[d`/`]d`). Now it is similar to spelling mistakes and spelling errors (`]s[s`/`]S[S` respectively).
This commit is contained in:
parent
dc9f9373fe
commit
e016b0a056
1 changed files with 2 additions and 2 deletions
|
@ -48,13 +48,13 @@ local function on_attach(client, bufnr)
|
|||
map("n", "]d", "<cmd>lua vim.diagnostic.goto_next()<cr>", { buffer = bufnr, desc = "Next diagnostic" })
|
||||
map(
|
||||
"n",
|
||||
"[e",
|
||||
"[D",
|
||||
"<cmd>lua vim.diagnostic.goto_prev({severity = vim.diagnostic.severity.ERROR})<cr>",
|
||||
{ buffer = bufnr, desc = "Previous error" }
|
||||
)
|
||||
map(
|
||||
"n",
|
||||
"]e",
|
||||
"]D",
|
||||
"<cmd>lua vim.diagnostic.goto_next({severity = vim.diagnostic.severity.ERROR})<cr>",
|
||||
{ buffer = bufnr, desc = "Next error" }
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue