Neovim/lua/plugins/navic.lua

24 lines
689 B
Lua
Raw Permalink Normal View History

2023-11-22 17:58:50 +00:00
return {
{
"SmiteshP/nvim-navic",
2023-11-27 22:37:34 +00:00
lazy = true,
2023-11-22 17:58:50 +00:00
init = function()
vim.g.navic_silence = true
require("lazyvim.util").lsp.on_attach(function(client, buffer)
if client.supports_method("textDocument/documentSymbol") then
require("nvim-navic").attach(client, buffer)
end
end)
end,
2023-11-27 22:37:34 +00:00
opts = function()
return {
separator = " ",
highlight = true,
depth_limit = 5,
icons = require("lazyvim.config").icons.kinds,
lazy_update_context = true,
}
end,
2023-11-22 17:58:50 +00:00
}
}