52 lines
1.2 KiB
Nix
52 lines
1.2 KiB
Nix
|
|
{ lib, pkgs, ...}:
|
||
|
|
{
|
||
|
|
extra = {
|
||
|
|
packages = [
|
||
|
|
(import ./package.nix { inherit lib pkgs; })
|
||
|
|
];
|
||
|
|
|
||
|
|
config = ''
|
||
|
|
require("aerial").setup({
|
||
|
|
backends = { "lsp", "treesitter", "markdown", "man" },
|
||
|
|
layout = { min_width = 28, placement = "edge" },
|
||
|
|
show_guides = true,
|
||
|
|
filter_kind = false,
|
||
|
|
|
||
|
|
guides = {
|
||
|
|
mid_item = "├ ",
|
||
|
|
last_item = "└ ",
|
||
|
|
nested_top = "│ ",
|
||
|
|
whitespace = " ",
|
||
|
|
},
|
||
|
|
autojump = true,
|
||
|
|
keymaps = {
|
||
|
|
["[y"] = "actions.prev",
|
||
|
|
["]y"] = "actions.next",
|
||
|
|
["[Y"] = "actions.prev_up",
|
||
|
|
["]Y"] = "actions.next_up",
|
||
|
|
["{"] = false,
|
||
|
|
["}"] = false,
|
||
|
|
["[["] = false,
|
||
|
|
["]]"] = false,
|
||
|
|
},
|
||
|
|
attach_mode = "global",
|
||
|
|
})
|
||
|
|
'';
|
||
|
|
};
|
||
|
|
|
||
|
|
rootOpts.keymaps = [
|
||
|
|
{
|
||
|
|
mode = "n";
|
||
|
|
key = "<leader>lo";
|
||
|
|
action.__raw = ''function() require("aerial").toggle() end'';
|
||
|
|
options.desc = "Symbols outline";
|
||
|
|
}
|
||
|
|
{
|
||
|
|
mode = "n";
|
||
|
|
key = "<leader>fs";
|
||
|
|
action.__raw = ''require("telescope").extensions.aerial.aerial'';
|
||
|
|
options.desc = "Find symbols";
|
||
|
|
}
|
||
|
|
];
|
||
|
|
}
|