NVIM: Use Lspsaga for breadcrumbs

- Disable statusline breadcrumbs coming from nvim-navic
- Use Lspsaga for Hover, Goto References, Peek Definition
- Enable Lspsaga Symbol Outline panel
- util.lua: Use same icons on Breadcrumbs and Navic Code navigation
- Code related shortcuts made for uniform, removed some
This commit is contained in:
Pratik Tripathy
2024-03-25 22:20:11 +05:30
parent ea30b2722f
commit b7be385529
7 changed files with 150 additions and 63 deletions

View File

@@ -114,7 +114,6 @@ return {
},
textobjects = {
select = {
enable = true,
lookahead = true, -- Automatically jump forward to textobj, similar to targets.vim
@@ -158,11 +157,10 @@ return {
enable = true,
border = "none",
floating_preview_opts = {},
peek_definition_code = {
-- TIP: Press the shortcut 2 times to enter the floating window
["<leader>cd"] = { query = "@function.outer", desc = "Peek function definition on a popup" },
["<leader>cD"] = { query = "@class.outer", desc = "Peek class definition on a popup" },
},
-- peek_definition_code = {
-- ["<leader>cd"] = { query = "@function.outer", desc = "Peek function definition on a popup" },
-- ["<leader>cD"] = { query = "@class.outer", desc = "Peek class definition on a popup" },
-- },
},
},
})