dotfiles/.config/nvim/lua/plugins/extras/editor/outline.lua
2023-11-28 00:17:58 +01:00

33 lines
747 B
Lua

return {
{
"hedyhli/outline.nvim",
cmd = { "Outline", "OutlineOpen" },
keys = { { "<leader>cs", "<cmd>Outline<CR>", desc = "Symbols Outline" } },
opts = {
outline_window = {
show_symbol_lineno = true,
auto_jump = true,
jump_highlight_duration = 150,
},
symbol_folding = {
autofold_depth = 1,
},
symbols = {
filter = require("lazyvim.config").kind_filter,
},
},
},
{
"folke/edgy.nvim",
optional = true,
opts = function(_, opts)
opts.right = opts.right or {}
table.insert(opts.right, {
title = "Symbols Outline",
ft = "Outline",
pinned = true,
open = "OutlineOpen",
})
end,
},
}