nvim/lua/user/plugins/lsp/navic.lua
2023-10-28 00:00:00 +07:00

19 lines
470 B
Lua

local lspkind_icons = require('user.config.vars').icons.kind
local navic_icons = {}
for key, val in pairs(lspkind_icons) do
if val.hl ~= nil then
navic_icons[key] = val.icon .. ' '
vim.api.nvim_set_hl(0, 'NavicIcons' .. key, { link = val.hl })
end
end
require('nvim-navic').setup {
icons = navic_icons,
highlight = true,
separator = '',
depth_limit = 0,
depth_limit_indicator = '..',
lazy_update_context = true,
}