kiyan
449b5bd0cb
fix(renderer): padding indent with folders only
2022-07-15 18:09:28 +02:00
kiyan
9a02dedd92
fix(renderer): indent markers with arrows
...
breaking: glyphs for indent markers should only be one block large
2022-07-15 09:33:40 +02:00
kiyan
19425c5896
refactor(renderer): extract bools into variables
2022-07-14 19:07:12 +02:00
kiyan
8632ac2739
fix(renderer): indent markers + folder arrows should offset
...
fixes #1421
2022-07-14 19:04:01 +02:00
Alexander Courtis
fd562ede63
fix( #1406 ): allow nvim-tree.renderer.icons.show.folder_arrow
...
* fix(#1406 ): allow nvim-tree.renderer.icons.show.folder_arrow when not folder
* fix(#1406 ): allow nvim-tree.renderer.icons.show.folder_arrow when indent markers enabled
* fix(builder): highlight first iteration for arrow column
* fix stylua
Co-authored-by: kiyan <yazdani.kiyan@protonmail.com >
2022-07-10 12:14:18 +10:00
Alexander Courtis
1fc0eee946
fix( #1354 ): add missing :hi NvimTreeFileIgnored ( #1358 )
2022-06-18 10:42:12 +02:00
lu5je0
821f050fda
feat: full-name of node in floating window ( #1305 )
2022-06-06 11:15:03 +02:00
Rammiah
6f6eab14dc
feat(renderer): indent_markers add a item icon ( #1321 )
2022-06-05 14:19:19 +02:00
Alexander Courtis
3ba383d591
chore/remove globals ( #1279 )
...
* remove renderer globals: nvim_tree_add_trailing nvim_tree_highlight_opened_files nvim_tree_root_folder_modifier nvim_tree_special_files
* remove renderer globals: nvim_tree_icon_padding
* remove renderer globals: nvim_tree_symlink_arrow
* remove renderer globals: nvim_tree_show_icons, nvim_tree_show_icons
* remove renderer globals: nvim_tree_git_hl
* remove renderer globals: nvim_tree_group_empty
* remove renderer globals: respect_buf_cwd
* remove renderer globals: nvim_tree_create_in_closed_folder
* remove globals: consistency in legacy checks
* remove renderer globals: nvim_tree_special_files
* renderer.icons.symbols -> glyphs
2022-05-28 11:08:40 +10:00
Kiyan
6343813a35
feat(live-filter): add ability to live filter out nodes in the tree ( #1056 )
2022-05-17 10:03:49 +02:00
Kiyan
f8312cd06f
feat(renderer): add ability to set git icons in signcolumn ( #1242 )
2022-05-14 09:54:27 +02:00
Kiyan
a1600e57f2
feat(renderer): allow placing git icons after filename ( #1203 )
...
This feature allows placing git icons after the filename.
2022-05-07 14:05:51 +02:00
kiyan
ce2cf7131f
refactor(renderer): refactor git handling
...
Concat and apply git highlight inside the builder.
This allows to not leak private data from builder to the git component.
This will also now allow us to customize git icon placement.
2022-04-26 22:59:16 +02:00
kiyan
0d6c0dda3d
refactor(renderer): remove set_folder_hl function from icons
...
This greatly simplifies the folder highlighting logic. It wasn't clear
before and the code was probably doing more than it should. The logic
with highlight_opened_file wasn't working at all, so i just removed it.
This should allow us to greatly extend the order in which the components
are rendered.
2022-04-26 22:28:40 +02:00
kiyan
d8fe48a887
refactor(renderer): return hl group from get_file_icon
...
this allows to not pass private data from builder to component
2022-04-26 21:50:34 +02:00
Alexander Courtis
c46653b4a3
#1186 open fail when nvim_tree_show_icons.folders = 0
2022-04-24 11:43:28 +10:00
kiyan
d44742bee5
refactor(renderer): line creation into a builder pattern
...
- use a builder pattern to mount the lines / highlights
- i think we lost a little performance, but gain in design
- code for file/folder icons is abstracted in components/icons.lua
- should also fix the issues where vim.g variables where loaded before
setup.
2022-04-23 15:15:10 +02:00
kiyan
3084e483ae
chore: refacto file placement of renderer components
2022-04-23 11:14:16 +02:00