chore(Neovim): Center cursor on more actions

- `n`, `N` on Neovim
- All diagnostic moves: `]d`, `[d`, `]e`, `[e`, `[w`, `[w`
- Snacks jump to next work occurrence: `]]`, `[[`
- Vim & Neovim: `gv`
This commit is contained in:
Pratik Tripathy
2025-08-14 01:25:15 +05:30
parent 1902cf2fcd
commit 1814c62d17
3 changed files with 8 additions and 0 deletions

View File

@@ -225,6 +225,7 @@ return {
"]]",
function()
Snacks.words.jump(vim.v.count1)
vim.cmd("normal! zz")
end,
desc = "Next Reference",
mode = { "n", "t" },
@@ -233,6 +234,7 @@ return {
"[[",
function()
Snacks.words.jump(-vim.v.count1)
vim.cmd("normal! zz")
end,
desc = "Prev Reference",
mode = { "n", "t" },