44 lines
1.3 KiB
Lua
44 lines
1.3 KiB
Lua
local status_ok, navic = pcall(require, "nvim-navic")
|
|
if not status_ok then
|
|
print("navic error!")
|
|
return
|
|
end
|
|
|
|
local icons = require("chris.icons")
|
|
|
|
navic.setup({
|
|
icons = {
|
|
File = icons.kind.File .. " ",
|
|
Module = icons.kind.Module .. " ",
|
|
Namespace = icons.kind.Namespace .. " ",
|
|
Package = icons.ui.Package .. " ",
|
|
Class = icons.kind.Class .. " ",
|
|
Method = icons.kind.Method .. " ",
|
|
Property = icons.kind.Property .. " ",
|
|
Field = icons.kind.Field .. " ",
|
|
Constructor = icons.kind.Constructor .. " ",
|
|
Enum = icons.kind.Enum .. " ",
|
|
Interface = icons.kind.Interface .. " ",
|
|
Function = icons.kind.Function .. " ",
|
|
Variable = icons.kind.Variable .. " ",
|
|
Constant = icons.kind.Constant .. " ",
|
|
String = icons.type.String .. " ",
|
|
Number = icons.type.Number .. " ",
|
|
Boolean = icons.type.Boolean .. " ",
|
|
Array = icons.type.Array .. " ",
|
|
Object = icons.type.Object .. " ",
|
|
Key = icons.kind.Key .. " ",
|
|
Null = icons.type.Null .. " ",
|
|
EnumMember = icons.kind.EnumMember .. " ",
|
|
Struct = icons.kind.Struct .. " ",
|
|
Event = icons.kind.Event .. " ",
|
|
Operator = icons.kind.Operator .. " ",
|
|
TypeParameter = icons.kind.TypeParameter .. " ",
|
|
},
|
|
highlight = false,
|
|
separator = " > ",
|
|
depth_limit = 0,
|
|
depth_limit_indicator = "..",
|
|
safe_output = true,
|
|
})
|