Open builtin grr/gri/grt lsp mappings in lspsaga finder popups
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3139d933ec
commit
15b68c1e42
1 file changed
+4
@@ -75,6 +75,10 @@ local on_attach = function(_, bufnr)
|
|||||||
keymap.set("n", "gd", "<cmd>Lspsaga finder def<CR>", opts)
|
keymap.set("n", "gd", "<cmd>Lspsaga finder def<CR>", opts)
|
||||||
keymap.set("n", "gi", "<cmd>Lspsaga finder imp<CR>", opts)
|
keymap.set("n", "gi", "<cmd>Lspsaga finder imp<CR>", opts)
|
||||||
keymap.set("n", "gy", "<cmd>Lspsaga finder tyd<CR>", opts)
|
keymap.set("n", "gy", "<cmd>Lspsaga finder tyd<CR>", opts)
|
||||||
|
-- override neovim's builtin gr* lsp defaults, they open the quickfix split too
|
||||||
|
keymap.set("n", "grr", "<cmd>Lspsaga finder ref<CR>", opts)
|
||||||
|
keymap.set("n", "gri", "<cmd>Lspsaga finder imp<CR>", opts)
|
||||||
|
keymap.set("n", "grt", "<cmd>Lspsaga finder tyd<CR>", opts)
|
||||||
keymap.set("n", "<leader>l", format_buffer, { desc = "Format code function" })
|
keymap.set("n", "<leader>l", format_buffer, { desc = "Format code function" })
|
||||||
keymap.set(
|
keymap.set(
|
||||||
"n",
|
"n",
|
||||||
|
|||||||
Reference in new issue
Block a user