Neovim/lua/plugins/navic.lua

20 lines
565 B
Lua
Raw Normal View History

2023-11-22 17:58:50 +00:00
return {
{
"SmiteshP/nvim-navic",
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,
opts = {
highlight = true,
icons = require("lazyvim.config").icons.kinds,
separator = "",
depth_limit = 5,
}
}
}