From 3e0116a1c92814bd5ea57ac598de54901c9736ea Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Sun, 1 Dec 2024 15:23:22 +0100 Subject: [PATCH] nvim: Replace aerial outliner with Trouble Since we already use trouble.nvim we can also make it mimic aerial views. --- nvim/.config/nvim/lua/plugins/outliners.lua | 33 ++------------------- 1 file changed, 2 insertions(+), 31 deletions(-) diff --git a/nvim/.config/nvim/lua/plugins/outliners.lua b/nvim/.config/nvim/lua/plugins/outliners.lua index 86a3129..af28995 100644 --- a/nvim/.config/nvim/lua/plugins/outliners.lua +++ b/nvim/.config/nvim/lua/plugins/outliners.lua @@ -1,35 +1,4 @@ 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 = { - { "so", "AerialNavToggle", silent = true, desc = "symbol navigator" }, - { "sO", "AerialToggle", silent = true, desc = "symbol outline" }, - }, - }, -- useful quickfix-like buffer { "folke/trouble.nvim", @@ -46,6 +15,8 @@ return { silent = true, desc = "diagnostics document", }, + { "so", "Trouble symbols toggle focus=true win.type=float", silent = true, desc = "symbol outline" }, + { "sO", "Trouble symbols toggle focus=false win.position=right", silent = true, desc = "symbol outline" }, }, }, }