12 lines
581 B
Lua
12 lines
581 B
Lua
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", "{", "<cmd>AerialPrev<CR>", { buffer = bufnr })
|
|
vim.keymap.set("n", "}", "<cmd>AerialNext<CR>", { buffer = bufnr })
|
|
end,
|
|
})
|
|
-- You probably also want to set a keymap to toggle aerial
|
|
vim.keymap.set("n", "<leader>ta", "<cmd>AerialToggle float<CR>",{ desc = 'toggle Aerial' })
|
|
vim.keymap.set("n", "<leader>a", "<cmd>AerialToggle left<CR>",{ desc = 'toggle Aerial' })
|