From 9883fcc3ea6347de6cd5cbc2ea0257f56049a682 Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Tue, 29 Apr 2025 10:01:37 +0200 Subject: [PATCH] feat: add aerial --- lua/ow/plugins/aerial.lua | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 lua/ow/plugins/aerial.lua diff --git a/lua/ow/plugins/aerial.lua b/lua/ow/plugins/aerial.lua new file mode 100644 index 0000000..7097aa2 --- /dev/null +++ b/lua/ow/plugins/aerial.lua @@ -0,0 +1,28 @@ +---@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", + }, +}