re-add aerial plugin
This commit is contained in:
parent
543c758b83
commit
d58d42ee50
8
config/nvim/lua/config/aerial.lua
Normal file
8
config/nvim/lua/config/aerial.lua
Normal 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,
|
||||
}
|
|
@ -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>fs", "<cmd>Telescope treesitter<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
|
||||
vim.keymap.set("n", "<leader>n", "<cmd>Neotree toggle<cr>")
|
||||
vim.keymap.set("n", "<leader>\\", "<cmd>Neotree reveal<cr>")
|
||||
|
||||
-- Aerial
|
||||
vim.keymap.set("n", "<leader>a", "<cmd>AerialToggle!<CR>")
|
||||
|
||||
-- Git
|
||||
vim.keymap.set("n", "<leader>gg", "<cmd>Git<cr>")
|
||||
vim.keymap.set("n", "<leader>gc", "<cmd>Git commit<cr>")
|
||||
|
|
16
config/nvim/lua/plugins/aerial.lua
Normal file
16
config/nvim/lua/plugins/aerial.lua
Normal 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,
|
||||
}
|
|
@ -12,6 +12,7 @@ return {
|
|||
require("telescope").load_extension "notify"
|
||||
require("telescope").load_extension "fzf"
|
||||
require("telescope").load_extension "lazy"
|
||||
require("telescope").load_extension "aerial"
|
||||
require("telescope").load_extension "luasnip"
|
||||
require("telescope").load_extension "git_diffs"
|
||||
require("telescope").load_extension "command_center"
|
||||
|
|
Loading…
Reference in a new issue