23 lines
880 B
Lua
23 lines
880 B
Lua
local wk = require("which-key")
|
|
require("aerial").setup({
|
|
lazy_load = true,
|
|
backends = { "treesitter", "lsp", "markdown", "man" },
|
|
layout = {
|
|
-- max_width = {40, 0.2} means "the lesser of 40 columns or 20% of total"
|
|
max_width = { 40, 0.2 },
|
|
width = nil,
|
|
min_width = 10,
|
|
default_direction = "prefer_right",
|
|
-- Determines where the aerial window will be opened
|
|
-- edge - open aerial at the far right/left of the editor
|
|
-- window - open aerial to the right/left of the current window
|
|
placement = "edge",
|
|
resize_to_content = true,
|
|
},
|
|
wk.add({
|
|
{ "{", "<cmd>AerialPrev<CR>", desc = "Jump to prev Symbol" },
|
|
{ "}", "<cmd>AerialNext<CR>", desc = "Jump to prev Symbol" },
|
|
{ "<leader>a", "<cmd>AerialToggle!<CR>", desc = "Toggle Outline" },
|
|
}),
|
|
})
|