From 5bbd5493c5e1490f07a96a92428e261ad6c0c120 Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Wed, 11 Feb 2026 18:52:58 +0100 Subject: [PATCH] feat: replace aerial with outline --- lua/plugins/aerial.lua | 28 ---------------------------- lua/plugins/outline.lua | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 28 deletions(-) delete mode 100644 lua/plugins/aerial.lua create mode 100644 lua/plugins/outline.lua diff --git a/lua/plugins/aerial.lua b/lua/plugins/aerial.lua deleted file mode 100644 index 7097aa2..0000000 --- a/lua/plugins/aerial.lua +++ /dev/null @@ -1,28 +0,0 @@ ----@type LazyPluginSpec -return { - "stevearc/aerial.nvim", - dependencies = { - "nvim-treesitter/nvim-treesitter", - }, - keys = { - { - "ss", - function() - require("aerial").toggle({ focus = false, direction = "left" }) - end, - }, - { - "gs", - function() - require("aerial").focus() - end, - }, - }, - opts = { - layout = { - max_width = 60, - min_width = 60, - }, - attach_mode = "global", - }, -} diff --git a/lua/plugins/outline.lua b/lua/plugins/outline.lua new file mode 100644 index 0000000..31128ad --- /dev/null +++ b/lua/plugins/outline.lua @@ -0,0 +1,16 @@ +---@type LazyPluginSpec +return { + "hedyhli/outline.nvim", + lazy = true, + cmd = { "Outline", "OutlineOpen" }, + keys = { -- Example mapping to toggle outline + { "o", "Outline", desc = "Toggle outline" }, + }, + opts = { + outline_window = { + relative_width = false, + split_command = "aboveleft 40vsp", + focus_on_open = false, + }, + }, +}