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

@@ -13,7 +13,7 @@ local on_attach = function(_, bufnr)
nmap("<leader>cr", vim.lsp.buf.rename, "Rename Symbol")
nmap("<leader>ca", vim.lsp.buf.code_action, "Code Action")
-- See `:help K` for why this keymap
nmap("K", vim.lsp.buf.hover, "Hover Documentation")
-- nmap("K", vim.lsp.buf.hover, "Hover Documentation")
-- nmap("<C-k>", vim.lsp.buf.signature_help, "Signature Documentation")
-- Lesser used LSP functionality
@@ -153,7 +153,7 @@ return {
end,
keys = {
{
"<leader>co",
"<leader>cu",
function()
vim.lsp.buf.code_action({
apply = true,
@@ -166,7 +166,7 @@ return {
desc = "Typescript: Organize Imports",
},
{
"<leader>cO",
"<leader>cU",
function()
vim.lsp.buf.code_action({
apply = true,