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, + }, + }, +}