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