edit aerial settings

This commit is contained in:
Michael Flossmann 2024-09-09 11:48:10 +02:00 committed by prunebutt
parent 6e554e0ac5
commit b368fd77ff

View file

@ -5,10 +5,10 @@
(import ./package.nix { inherit lib pkgs; }) (import ./package.nix { inherit lib pkgs; })
]; ];
config = '' config = /*lua*/ ''
require("aerial").setup({ require("aerial").setup({
backends = { "lsp", "treesitter", "markdown", "man" }, backends = { "lsp", "treesitter", "markdown", "man" },
layout = { min_width = 28, placement = "edge" }, layout = { min_width = 28, placement = "window", default_direction = "prefer_left" },
show_guides = true, show_guides = true,
filter_kind = false, filter_kind = false,
@ -24,10 +24,14 @@
["]y"] = "actions.next", ["]y"] = "actions.next",
["[Y"] = "actions.prev_up", ["[Y"] = "actions.prev_up",
["]Y"] = "actions.next_up", ["]Y"] = "actions.next_up",
["|"] = "actions.jump_vsplit",
["\\"] = "actions.jump_split",
["{"] = false, ["{"] = false,
["}"] = false, ["}"] = false,
["[["] = false, ["[["] = false,
["]]"] = false, ["]]"] = false,
["<C-v>"] = false,
["<C-s>"] = false,
}, },
attach_mode = "global", attach_mode = "global",
}) })
@ -38,7 +42,7 @@
{ {
mode = "n"; mode = "n";
key = "<leader>lO"; key = "<leader>lO";
action.__raw = ''function() require("aerial").open({direction = "left"}) end''; action.__raw = ''function() require("aerial").open() end'';
options.desc = "Symbols outline (left)"; options.desc = "Symbols outline (left)";
} }
{ {