nvim: Replace aerial outliner with Trouble

Since we already use trouble.nvim we can also make it mimic aerial
views.
This commit is contained in:
Marty Oehme 2024-12-01 15:23:22 +01:00
parent b57f895093
commit 3e0116a1c9
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A

View file

@ -1,35 +1,4 @@
return { return {
-- vista-like outline view for code
{
"stevearc/aerial.nvim",
config = true,
-- Optional dependencies
dependencies = {
"nvim-treesitter/nvim-treesitter",
"nvim-tree/nvim-web-devicons",
},
cmd = {
"AerialToggle",
"AerialOpen",
"AerialOpenAll",
"AerialClose",
"AerialCloseAll",
"AerialNext",
"AerialPrev",
"AerialGo",
"AerialInfo",
"AerialNavToggle",
"AerialNavOpen",
"AerialNavClose",
},
opts = {
backends = { "treesitter", "lsp", "markdown", "man" },
},
keys = {
{ "<leader>so", "<cmd>AerialNavToggle<cr>", silent = true, desc = "symbol navigator" },
{ "<leader>sO", "<cmd>AerialToggle<cr>", silent = true, desc = "symbol outline" },
},
},
-- useful quickfix-like buffer -- useful quickfix-like buffer
{ {
"folke/trouble.nvim", "folke/trouble.nvim",
@ -46,6 +15,8 @@ return {
silent = true, silent = true,
desc = "diagnostics document", desc = "diagnostics document",
}, },
{ "<leader>so", "<cmd>Trouble symbols toggle focus=true win.type=float<cr>", silent = true, desc = "symbol outline" },
{ "<leader>sO", "<cmd>Trouble symbols toggle focus=false win.position=right<cr>", silent = true, desc = "symbol outline" },
}, },
}, },
} }