Skip to content

Commit

Permalink
chore(aerial): setup
Browse files Browse the repository at this point in the history
  • Loading branch information
ttak0422 committed Dec 27, 2024
1 parent 07e366b commit 1e4078a
Show file tree
Hide file tree
Showing 8 changed files with 146 additions and 13 deletions.
23 changes: 20 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1364,6 +1364,10 @@
url = "github:nvim-lua/popup.nvim";
flake = false;
};
aerial-nvim = {
url = "github:stevearc/aerial.nvim";
flake = false;
};
};

outputs =
Expand Down
93 changes: 93 additions & 0 deletions fnl/aerial.fnl
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
(let [M (require :aerial)
backends [:treesitter :lsp]
icons {:Text "󰉿"
:Method "󰊕"
:Function "󰊕"
:Constructor ""
:Field "󰜢"
:Variable "󰀫"
:Class "󰠱"
:Interface ""
:Module ""
:Property "󰜢"
:Unit "󰑭"
:Value "󰎠"
:Enum ""
:Keyword "󰌋"
:Snippet ""
:Color "󰏘"
:File "󰈙"
:Reference "󰈇"
:Folder "󰉋"
:EnumMember ""
:Constant "󰏿"
:Struct "󰙅"
:Event ""
:Operator "󰆕"
:TypeParameter "󰗴"}
layout {:max_width 0.25
:min_width 0.15
:default_direction :prefer_left
:placement :window}
keymaps {:g? :actions.show_help
:<CR> :actions.jump
:<2-LeftMouse> :actions.jump
:<C-v> :actions.jump_vsplit
:<C-s> :actions.jump_split
:p :actions.scroll
:<C-j> :actions.down_and_scroll
:<C-k> :actions.up_and_scroll
"{" :actions.prev
"}" :actions.next
"[[" :actions.prev_up
"]]" :actions.next_up
:q :actions.close
:o :actions.tree_toggle
:za :actions.tree_toggle
:O :actions.tree_toggle_recursive
:zA :actions.tree_toggle_recursive
:l :actions.tree_open
:zo :actions.tree_open
:L :actions.tree_open_recursive
:zO :actions.tree_open_recursive
:h :actions.tree_close
:zc :actions.tree_close
:H :actions.tree_close_recursive
:zC :actions.tree_close_recursive
:zr :actions.tree_increase_fold_level
:zR :actions.tree_open_all
:zm :actions.tree_decrease_fold_level
:zM :actions.tree_close_all
:zx :actions.tree_sync_folds
:zX :actions.tree_sync_folds}
filter_kind [:Class
:Constructor
:Enum
:Function
:Method
:Interface
:Module
:Method
:Struct]
ignore {:unlisted_buffers false
:diff_windows true
:filetypes {}
:buftypes :special
:wintypes :special}
treesitter {:update_delay 500}
lsp {:diagnostics_trigger_update false
:update_when_errors true
:update_delay 600}
guides {:mid_item "├─"
:last_item "└─"
:nested_top "│ "
:whitespace " "}]
(M.setup {: backends
: icons
: layout
: keymaps
: filter_kind
: ignore
: treesitter
: lsp
: guides}))
1 change: 1 addition & 0 deletions fnl/prelude.fnl
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@
[:tm
(lcmd "require('codewindow').toggle_minimap()")
(desc "toggle minimap")]
[:to (cmd :AerialToggle) (desc "toggle outline")]
[:tj
(cmd "lua require('treesj').toggle({ split = { recursive = false }})")
(desc "toggle split/join")]
Expand Down
12 changes: 12 additions & 0 deletions lua/autogen/aerial.lua

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lua/autogen/prelude.lua

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 10 additions & 9 deletions main/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -158,20 +158,21 @@ let
;
inherit (callPackage ./test.nix { }) neotest;
inherit (callPackage ./tool.nix { })
translate-nvim
aerial
copilot-chat
dotfyle-metadata
hardtime
lir
no-neck-pain
oil
other
overseer
pgmnt
screenkey
spectre
startuptime
translate-nvim
window-picker
lir
oil
other
dotfyle-metadata
copilot-chat
screenkey
pgmnt
hardtime
;
inherit (callPackage ./treesitter.nix { })
treesitter
Expand Down
5 changes: 5 additions & 0 deletions main/tool.nix
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,9 @@ rec {
];
hooks.commands = [ "Hardtime" ];
};
aerial = {
package = aerial-nvim;
postConfig = read ../lua/autogen/aerial.lua;
hooks.commands = [ "AerialToggle" ];
};
}

0 comments on commit 1e4078a

Please sign in to comment.