pojokcodeid.nvim-lazy/lua/pcode/plugins/extras/navic.lua

36 lines
670 B
Lua
Raw Normal View History

2024-11-04 21:29:25 +07:00
local M = {
2024-11-06 12:22:10 +07:00
"SmiteshP/nvim-navic",
event = "VeryLazy",
dependencies = {
"LunarVim/breadcrumbs.nvim",
opts = {},
config = true,
},
2024-11-04 21:29:25 +07:00
}
function M.config()
2024-11-06 12:22:10 +07:00
local icons = require("pcode.user.icons").kind
for key, value in pairs(icons) do
icons[key] = value .. " "
end
require("nvim-navic").setup({
icons = icons,
lsp = {
2024-11-12 07:37:07 +07:00
auto_attach = true,
2024-11-06 12:22:10 +07:00
preference = nil,
},
highlight = false,
separator = " > ",
depth_limit = 0,
depth_limit_indicator = "..",
safe_output = true,
lazy_update_context = false,
click = false,
format_text = function(text)
return text
end,
})
2024-11-04 21:29:25 +07:00
end
return M