2023-01-25 18:36:39 +00:00
|
|
|
local aerial = require('aerial')
|
|
|
|
aerial.setup {
|
|
|
|
backends = { "lsp", "treesitter", "markdown", "man" },
|
2022-11-30 14:46:27 +00:00
|
|
|
layout = {
|
2023-01-25 18:36:39 +00:00
|
|
|
default_direction = "float",
|
2022-11-30 14:46:27 +00:00
|
|
|
placement = "edge",
|
|
|
|
},
|
|
|
|
attach_mode = "global",
|
2023-01-25 18:36:39 +00:00
|
|
|
highlight_mode = "none",
|
2022-11-30 14:46:27 +00:00
|
|
|
lazy_load = false,
|
2022-11-02 13:40:30 +00:00
|
|
|
on_attach = function(bufnr)
|
|
|
|
-- Toggle the aerial window with <leader>a
|
2023-01-25 18:36:39 +00:00
|
|
|
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>a', '<cmd>AerialToggle!<CR>', {})
|
2022-11-02 13:40:30 +00:00
|
|
|
-- Jump forwards/backwards with '{' and '}'
|
|
|
|
vim.api.nvim_buf_set_keymap(bufnr, 'n', '{', '<cmd>AerialPrev<CR>', {})
|
|
|
|
vim.api.nvim_buf_set_keymap(bufnr, 'n', '}', '<cmd>AerialNext<CR>', {})
|
|
|
|
-- Jump up the tree with '[[' or ']]'
|
|
|
|
vim.api.nvim_buf_set_keymap(bufnr, 'n', '[[', '<cmd>AerialPrevUp<CR>', {})
|
|
|
|
vim.api.nvim_buf_set_keymap(bufnr, 'n', ']]', '<cmd>AerialNextUp<CR>', {})
|
|
|
|
end,
|
2022-11-30 16:29:42 +00:00
|
|
|
open_automatic = false,
|
2023-01-25 18:36:39 +00:00
|
|
|
close_automatic_events = { "unfocus", "switch_buffer", "unsupported" },
|
|
|
|
show_guides = true,
|
2022-11-01 16:49:01 +00:00
|
|
|
}
|