Add additional backends for aerial, enable global mode
This commit is contained in:
parent
f6755e04c4
commit
40a4928ccd
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue