chore(nvim): add aerial.nvim

This commit is contained in:
Rob Watson 2024-04-08 09:32:44 +02:00
parent a3f44dfdde
commit 56739dea0b
2 changed files with 12 additions and 0 deletions

5
nvimrc
View File

@ -282,6 +282,11 @@ packadd! vim-rhubarb " https://github.com/tpope/vim-rhubarb.git
packadd! editorconfig-vim " https://github.com/editorconfig/editorconfig-vim.git packadd! editorconfig-vim " https://github.com/editorconfig/editorconfig-vim.git
packadd! vim-wordmotion " https://github.com/chaoren/vim-wordmotion.git packadd! vim-wordmotion " https://github.com/chaoren/vim-wordmotion.git
" aerial
packadd! aerial.nvim " https://github.com/stevearc/aerial.nvim.git
lua require "aerial_config"
" conform.nvim: " conform.nvim:
packadd! conform.nvim " https://github.com/stevearc/conform.nvim.git packadd! conform.nvim " https://github.com/stevearc/conform.nvim.git

View File

@ -0,0 +1,7 @@
require("aerial").setup({
on_attach = function(bufnr)
vim.keymap.set("n", "{", "<cmd>AerialPrev<CR>", { buffer = bufnr })
vim.keymap.set("n", "}", "<cmd>AerialNext<CR>", { buffer = bufnr })
end,
})
vim.keymap.set("n", "<leader>a", "<cmd>AerialToggle!<CR>")