chore(nvim): add aerial.nvim
This commit is contained in:
parent
a3f44dfdde
commit
56739dea0b
5
nvimrc
5
nvimrc
|
@ -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! 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:
|
||||
packadd! conform.nvim " https://github.com/stevearc/conform.nvim.git
|
||||
|
||||
|
|
|
@ -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>")
|
Loading…
Reference in New Issue