(nvim) bind go to diagnostic on lsp attach
This commit is contained in:
parent
f3d0de71c1
commit
bdc33452c3
1 changed files with 3 additions and 0 deletions
|
|
@ -59,6 +59,9 @@ return {
|
||||||
-- For example, in C this would take you to the header.
|
-- For example, in C this would take you to the header.
|
||||||
map("gD", vim.lsp.buf.declaration, "[G]oto [D]eclaration")
|
map("gD", vim.lsp.buf.declaration, "[G]oto [D]eclaration")
|
||||||
|
|
||||||
|
map("[d", vim.diagnostic.goto_prev, "Go to previous diagnostic")
|
||||||
|
map("]d", vim.diagnostic.goto_next, "Go to next diagnostic")
|
||||||
|
|
||||||
-- The following two autocommands are used to highlight references of the
|
-- The following two autocommands are used to highlight references of the
|
||||||
-- word under your cursor when your cursor rests there for a little while.
|
-- word under your cursor when your cursor rests there for a little while.
|
||||||
-- See `:help CursorHold` for information about when this is executed
|
-- See `:help CursorHold` for information about when this is executed
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue