Add additional backends for aerial, enable global mode

This commit is contained in:
Evie Litherland-Smith 2022-11-30 14:46:27 +00:00
parent f6755e04c4
commit 40a4928ccd

View file

@ -1,4 +1,11 @@
require('aerial').setup {
backends = { "treesitter", "lsp", "markdown", "man" },
layout = {
default_direction = "right", -- "float",
placement = "edge",
},
attach_mode = "global",
lazy_load = false,
on_attach = function(bufnr)
-- Toggle the aerial window with <leader>a
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>k', '<cmd>AerialToggle!<CR>', {})
@ -9,4 +16,5 @@ require('aerial').setup {
vim.api.nvim_buf_set_keymap(bufnr, 'n', '[[', '<cmd>AerialPrevUp<CR>', {})
vim.api.nvim_buf_set_keymap(bufnr, 'n', ']]', '<cmd>AerialNextUp<CR>', {})
end,
open_automatic = true,
}