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

@@ -28,26 +28,26 @@ local M = {
Enum = "",
EnumMember = "",
Event = "",
Field = " ",
Field = " ",
File = "󰈙 ",
Folder = " ",
Function = "󰊕 ",
Folder = " ",
Function = "󰡱 ",
Interface = "",
Key = "󰌋 ",
Keyword = "",
Method = "󰊕 ",
Module = " ",
Method = "󰡱 ",
Module = " ",
Namespace = "󰦮 ",
Null = "󰟢 ",
Number = "󰎠 ",
Object = "",
Operator = "",
Package = " ",
Property = " ",
Package = " ",
Property = " ",
Reference = "",
Snippet = "",
String = "",
Struct = "󰆼 ",
Struct = " ",
TabNine = "󰏚 ",
Text = "",
TypeParameter = "",
@@ -55,6 +55,46 @@ local M = {
Value = "",
Variable = "󰀫 ",
},
-- Only to keep things in sync with "navbuddy"
kind_lspsaga = {
["Array"] = { "", "Type" },
["Boolean"] = { "󰨙 ", "Boolean" },
["Class"] = { "", "Include" },
["Constant"] = { "󰏿 ", "Constant" },
["Constructor"] = { "", "@constructor" },
["Enum"] = { "", "@number" },
["EnumMember"] = { "", "Number" },
["Event"] = { "", "Constant" },
["Field"] = { "", "@field" },
["File"] = { "󰈙 ", "Tag" },
["Function"] = { "󰡱 ", "Function" },
["Interface"] = { "", "Type" },
["Key"] = { "󰌋 ", "Constant" },
["Method"] = { "󰡱 ", "Function" },
["Module"] = { "", "Exception" },
["Namespace"] = { "󰦮 ", "Include" },
["Null"] = { "󰟢 ", "Constant" },
["Number"] = { "󰎠 ", "Number" },
["Object"] = { "", "Type" },
["Operator"] = { "", "Operator" },
["Package"] = { "", "Label" },
["Property"] = { "", "@property" },
["String"] = { "", "String" },
["Struct"] = { "", "Type" },
["TypeParameter"] = { "", "Type" },
["Variable"] = { "󰀫 ", "@variable" },
-- ccls
["TypeAlias"] = { "", "Type" },
["Parameter"] = { "", "@parameter" },
["StaticMethod"] = { "󰡱 ", "Function" },
["Macro"] = { "", "Macro" },
-- for completion sb microsoft!!!
["Text"] = { "󰭷 ", "String" },
["Snippet"] = { "", "@variable" },
["Folder"] = { "", "Title" },
["Unit"] = { "󰊱 ", "Number" },
["Value"] = { "󰀫 ", "@variable" },
},
},
}