fix(lsp): move next/prev reference keymaps to lsp keymaps. See #3220

This commit is contained in:
Folke Lemaitre 2024-05-18 15:46:28 +02:00
parent 9080959981
commit a4d83524a7
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 3 additions and 7 deletions

View file

@ -39,7 +39,9 @@ function M.get()
end,
desc = "Source Action",
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
M._keys[#M._keys + 1] = {

View file

@ -158,12 +158,6 @@ function M.words.setup(opts)
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