Set aerial close behaviour to "global"

This commit is contained in:
Edward Litherland-Smith 2022-09-05 15:29:43 +01:00
parent c9cff62306
commit 374a7efd8b

View file

@ -8,6 +8,7 @@ vim.keymap.set('n', '<space>q', vim.diagnostic.setloclist, opts)
-- Setup aerial
require('aerial').setup{
close_behavior = "global",
on_attach = function(bufnr)
-- Toggle the aerial window with <leader>a
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>k', '<cmd>AerialToggle!<CR>', {})
@ -17,7 +18,7 @@ require('aerial').setup{
-- 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
end,
}
-- Use an on_attach function to only map the following keys