63 lines
1.1 KiB
Lua
63 lines
1.1 KiB
Lua
return {
|
|
"stevearc/aerial.nvim",
|
|
opts = {
|
|
highlight_on_hover = true,
|
|
highlight_on_jump = 300,
|
|
autojump = true,
|
|
post_jump_cmd = "normal! zzl",
|
|
filter_kind = {
|
|
"Array",
|
|
"Boolean",
|
|
"Class",
|
|
"Constant",
|
|
"Constructor",
|
|
"Enum",
|
|
"EnumMember",
|
|
"Event",
|
|
"Field",
|
|
"File",
|
|
"Function",
|
|
"Interface",
|
|
"Key",
|
|
"Method",
|
|
"Module",
|
|
"Namespace",
|
|
"Null",
|
|
"Number",
|
|
"Object",
|
|
"Operator",
|
|
"Package",
|
|
"Property",
|
|
"String",
|
|
"Struct",
|
|
"TypeParameter",
|
|
"Variable",
|
|
},
|
|
},
|
|
-- Optional dependencies
|
|
dependencies = {
|
|
"nvim-treesitter/nvim-treesitter",
|
|
"nvim-tree/nvim-web-devicons",
|
|
},
|
|
keys = {
|
|
{
|
|
"<leader>ss",
|
|
function()
|
|
require("aerial").snacks_picker({
|
|
layout = {
|
|
cycle = true,
|
|
width = 1,
|
|
min_width = 1,
|
|
min_height = 1,
|
|
height = 1,
|
|
--- Use the default layout or vertical if the window is too narrow
|
|
preset = function()
|
|
return vim.o.columns >= 120 and "default" or "vertical"
|
|
end,
|
|
},
|
|
})
|
|
end,
|
|
desc = "Symbols",
|
|
},
|
|
},
|
|
}
|