if vim.g.did_load_aerial_plugin then return end vim.g.did_load_aerial_plugin = true require("aerial").setup({ -- optionally use on_attach to set keymaps when aerial has attached to a buffer on_attach = function(bufnr) -- Jump forwards/backwards with '{' and '}' vim.keymap.set("n", "{", "AerialPrev", { buffer = bufnr }) vim.keymap.set("n", "}", "AerialNext", { buffer = bufnr }) end, }) -- You probably also want to set a keymap to toggle aerial vim.keymap.set("n", "a", "AerialToggle!")