nixos/config/nvim/lua/config_plugins/config_aerial.lua
Evie Litherland-Smith 85342ba955 Convert nvim config to full dotfiles repo
Restructure ready for adding additional config files
2023-01-10 07:55:21 +00:00

21 lines
872 B
Lua

require('aerial').setup {
backends = { "treesitter", "lsp", "markdown", "man" },
layout = {
default_direction = "right", -- "float",
placement = "edge",
},
attach_mode = "global",
lazy_load = false,
on_attach = function(bufnr)
-- Toggle the aerial window with <leader>a
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>k', '<cmd>AerialToggle!<CR>', {})
-- Jump forwards/backwards with '{' and '}'
vim.api.nvim_buf_set_keymap(bufnr, 'n', '{', '<cmd>AerialPrev<CR>', {})
vim.api.nvim_buf_set_keymap(bufnr, 'n', '}', '<cmd>AerialNext<CR>', {})
-- Jump up the tree with '[[' or ']]'
vim.api.nvim_buf_set_keymap(bufnr, 'n', '[[', '<cmd>AerialPrevUp<CR>', {})
vim.api.nvim_buf_set_keymap(bufnr, 'n', ']]', '<cmd>AerialNextUp<CR>', {})
end,
open_automatic = false,
}