return function () require('aerial').setup({ -- Your configuration here -- To auto-open the aerial window on entering a buffer: on_attach = function(bufnr) vim.keymap.set("n", "{", "AerialPrev", { buffer = bufnr }) vim.keymap.set("n", "}", "AerialNext", { buffer = bufnr }) require('aerial').open({focus = false}) end }) end