jump prev/next diagnostic update
This commit is contained in:
parent
7f4ccaa10e
commit
7eccfacf88
|
|
@ -5,7 +5,7 @@ end
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
'saghen/blink.compat',
|
'saghen/blink.compat',
|
||||||
version = '*',
|
branch = 'v1',
|
||||||
lazy = true,
|
lazy = true,
|
||||||
opts = {},
|
opts = {},
|
||||||
},
|
},
|
||||||
|
|
@ -22,8 +22,8 @@ return {
|
||||||
},
|
},
|
||||||
build = 'nix run --extra-experimental-features flakes --extra-experimental-features nix-command .#build-plugin',
|
build = 'nix run --extra-experimental-features flakes --extra-experimental-features nix-command .#build-plugin',
|
||||||
keys = {
|
keys = {
|
||||||
{ "<leader>n", vim.diagnostic.goto_next },
|
{ "<leader>n", function() vim.diagnostic.jump({ count = 1 }) end },
|
||||||
{ "<leader>p", vim.diagnostic.goto_prev },
|
{ "<leader>p", function() vim.diagnostic.jump({ count = -1 }) end },
|
||||||
{ "<leader>f", vim.lsp.buf.code_action },
|
{ "<leader>f", vim.lsp.buf.code_action },
|
||||||
{ "gd", vim.lsp.buf.definition },
|
{ "gd", vim.lsp.buf.definition },
|
||||||
{ "gi", vim.lsp.buf.implementation },
|
{ "gi", vim.lsp.buf.implementation },
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue