Set aerial close behaviour to "global"
This commit is contained in:
parent
c9cff62306
commit
374a7efd8b
|
@ -8,6 +8,7 @@ vim.keymap.set('n', '<space>q', vim.diagnostic.setloclist, opts)
|
||||||
|
|
||||||
-- Setup aerial
|
-- Setup aerial
|
||||||
require('aerial').setup{
|
require('aerial').setup{
|
||||||
|
close_behavior = "global",
|
||||||
on_attach = function(bufnr)
|
on_attach = function(bufnr)
|
||||||
-- Toggle the aerial window with <leader>a
|
-- Toggle the aerial window with <leader>a
|
||||||
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>k', '<cmd>AerialToggle!<CR>', {})
|
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 ']]'
|
-- 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>AerialPrevUp<CR>', {})
|
||||||
vim.api.nvim_buf_set_keymap(bufnr, 'n', ']]', '<cmd>AerialNextUp<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
|
-- Use an on_attach function to only map the following keys
|
||||||
|
|
Loading…
Reference in a new issue