aboutsummaryrefslogtreecommitdiff
path: root/common/config/nvim/lua/plugins/navic.lua
diff options
context:
space:
mode:
Diffstat (limited to 'common/config/nvim/lua/plugins/navic.lua')
-rwxr-xr-xcommon/config/nvim/lua/plugins/navic.lua51
1 files changed, 51 insertions, 0 deletions
diff --git a/common/config/nvim/lua/plugins/navic.lua b/common/config/nvim/lua/plugins/navic.lua
new file mode 100755
index 0000000..a574d5c
--- /dev/null
+++ b/common/config/nvim/lua/plugins/navic.lua
@@ -0,0 +1,51 @@
+local M = {}
+
+function M.setup()
+ local ok, navic = pcall(require, "nvim-navic")
+ if not ok or not navic then
+ return false
+ end
+
+ navic.setup({
+ icons = {
+ File = " ",
+ Module = " ",
+ Namespace = " ",
+ Package = " ",
+ Class = " ",
+ Method = " ",
+ Property = " ",
+ Field = " ",
+ Constructor = " ",
+ Enum = "練",
+ Interface = "練",
+ Function = " ",
+ Variable = " ",
+ Constant = " ",
+ String = " ",
+ Number = " ",
+ Boolean = "◩ ",
+ Array = " ",
+ Object = " ",
+ Key = " ",
+ Null = "ﳠ ",
+ EnumMember = " ",
+ Struct = " ",
+ Event = " ",
+ Operator = " ",
+ TypeParameter = " "
+ },
+ highlight = false,
+ separator = " > ",
+ depth_limit = 0,
+ depth_limit_indicator = "..",
+ safe_output = true,
+ lsp = {
+ auto_attach = true
+ }
+ })
+
+ return true
+end
+
+return M