re-add aerial plugin

This commit is contained in:
Evie Litherland-Smith 2023-03-03 10:24:42 +00:00
parent 543c758b83
commit d58d42ee50
4 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,8 @@
return {
-- 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,
}

View file

@ -16,11 +16,15 @@ vim.keymap.set("n", "<leader>fl", "<cmd>Telescope lsp_document_symbols<cr>")
vim.keymap.set("n", "<leader>fe", "<cmd>Telescope diagnostics<cr>") vim.keymap.set("n", "<leader>fe", "<cmd>Telescope diagnostics<cr>")
vim.keymap.set("n", "<leader>fs", "<cmd>Telescope treesitter<cr>") vim.keymap.set("n", "<leader>fs", "<cmd>Telescope treesitter<cr>")
vim.keymap.set("n", "<leader>fz", "<cmd>Telescope current_buffer_fuzzy_find<cr>") vim.keymap.set("n", "<leader>fz", "<cmd>Telescope current_buffer_fuzzy_find<cr>")
vim.keymap.set("n", "<leader>fa", "<cmd>Telescope aerial<cr>")
-- Neotree -- Neotree
vim.keymap.set("n", "<leader>n", "<cmd>Neotree toggle<cr>") vim.keymap.set("n", "<leader>n", "<cmd>Neotree toggle<cr>")
vim.keymap.set("n", "<leader>\\", "<cmd>Neotree reveal<cr>") vim.keymap.set("n", "<leader>\\", "<cmd>Neotree reveal<cr>")
-- Aerial
vim.keymap.set("n", "<leader>a", "<cmd>AerialToggle!<CR>")
-- Git -- Git
vim.keymap.set("n", "<leader>gg", "<cmd>Git<cr>") vim.keymap.set("n", "<leader>gg", "<cmd>Git<cr>")
vim.keymap.set("n", "<leader>gc", "<cmd>Git commit<cr>") vim.keymap.set("n", "<leader>gc", "<cmd>Git commit<cr>")

View file

@ -0,0 +1,16 @@
return {
"stevearc/aerial.nvim",
name = "aerial",
cmd = {
"AerialToggle",
"AerialOpen",
"AerialOpenAll",
"AerialNext",
"AerialPrev",
"AerialGo",
"AerialInfo",
},
config = function()
require("aerial").setup(require "config.aerial")
end,
}

View file

@ -12,6 +12,7 @@ return {
require("telescope").load_extension "notify" require("telescope").load_extension "notify"
require("telescope").load_extension "fzf" require("telescope").load_extension "fzf"
require("telescope").load_extension "lazy" require("telescope").load_extension "lazy"
require("telescope").load_extension "aerial"
require("telescope").load_extension "luasnip" require("telescope").load_extension "luasnip"
require("telescope").load_extension "git_diffs" require("telescope").load_extension "git_diffs"
require("telescope").load_extension "command_center" require("telescope").load_extension "command_center"