From 8150dbace248f597d3e9fa960bc2d2d6802c3b7b Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Fri, 16 Jan 2026 15:33:18 +0100 Subject: [PATCH] add outline display --- modules/nvim.nix | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/modules/nvim.nix b/modules/nvim.nix index fed4fd7..05927d5 100644 --- a/modules/nvim.nix +++ b/modules/nvim.nix @@ -182,6 +182,19 @@ }; auto-session.enable = true; + + aerial = { + enable = true; + settings = { + backends = ["treesitter"]; + layout = { + min_width = 30; + default_direction = "right"; + }; + show_guides = true; + filter_kind = false; + }; + }; }; # Extra plugins that don't have dedicated modules @@ -201,6 +214,20 @@ options = { desc = "Toggle file explorer"; }; } + # Aerial outline + { + mode = "n"; + key = "h"; + action = ":AerialToggle"; + options = { desc = "Toggle outline sidebar"; }; + } + { + mode = "n"; + key = "s"; + action = ":Telescope aerial"; + options = { desc = "Search symbols"; }; + } + # Basic keymaps { mode = "n"; @@ -329,6 +356,7 @@ } } } + telescope.load_extension('aerial') -- OSC-52 clipboard integration (matches tmux setup, works with Ghostty) -- This enables clipboard functionality across SSH, tmux, and multi-platform