From 374a7efd8bb269a8744852ce23df78fc53e6e3ba Mon Sep 17 00:00:00 2001 From: Edward Litherland-Smith Date: Mon, 5 Sep 2022 15:29:43 +0100 Subject: [PATCH] Set aerial close behaviour to "global" --- lsp_config.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lsp_config.lua b/lsp_config.lua index 41a07b30..1d6bcd45 100644 --- a/lsp_config.lua +++ b/lsp_config.lua @@ -8,6 +8,7 @@ vim.keymap.set('n', 'q', vim.diagnostic.setloclist, opts) -- Setup aerial require('aerial').setup{ + close_behavior = "global", on_attach = function(bufnr) -- Toggle the aerial window with a vim.api.nvim_buf_set_keymap(bufnr, 'n', 'k', 'AerialToggle!', {}) @@ -17,7 +18,7 @@ require('aerial').setup{ -- Jump up the tree with '[[' or ']]' vim.api.nvim_buf_set_keymap(bufnr, 'n', '[[', 'AerialPrevUp', {}) vim.api.nvim_buf_set_keymap(bufnr, 'n', ']]', 'AerialNextUp', {}) - end + end, } -- Use an on_attach function to only map the following keys