2024-09-23 17:38:17 +02:00
|
|
|
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
|
2024-09-24 21:42:42 +02:00
|
|
|
-- 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,
|
2024-09-23 17:38:17 +02:00
|
|
|
})
|
|
|
|
-- You probably also want to set a keymap to toggle aerial
|
|
|
|
vim.keymap.set("n", "<leader>a", "<cmd>AerialToggle!<CR>")
|
|
|
|
|
|
|
|
|