mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-18 09:44:50 +02:00
fix(lsp): move next/prev reference keymaps to lsp keymaps. See #3220
This commit is contained in:
parent
9080959981
commit
a4d83524a7
2 changed files with 3 additions and 7 deletions
|
@ -39,7 +39,9 @@ function M.get()
|
||||||
end,
|
end,
|
||||||
desc = "Source Action",
|
desc = "Source Action",
|
||||||
has = "codeAction",
|
has = "codeAction",
|
||||||
}
|
},
|
||||||
|
{ "]]", function() LazyVim.lsp.words.jump(vim.v.count1) end, has = "documentHighlight", desc = "Next Reference" },
|
||||||
|
{ "[[", function() LazyVim.lsp.words.jump(-vim.v.count1) end, has = "documentHighlight", desc = "Next Reference" },
|
||||||
}
|
}
|
||||||
if LazyVim.has("inc-rename.nvim") then
|
if LazyVim.has("inc-rename.nvim") then
|
||||||
M._keys[#M._keys + 1] = {
|
M._keys[#M._keys + 1] = {
|
||||||
|
|
|
@ -158,12 +158,6 @@ function M.words.setup(opts)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
vim.keymap.set("n", "]]", function()
|
|
||||||
M.words.jump(vim.v.count1)
|
|
||||||
end, { buffer = buf, desc = "Next reference" })
|
|
||||||
vim.keymap.set("n", "[[", function()
|
|
||||||
M.words.jump(-vim.v.count1)
|
|
||||||
end, { buffer = buf, desc = "Previous reference" })
|
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue