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.
This commit is contained in:
kiyan
2022-04-26 22:59:16 +02:00
parent 0d6c0dda3d
commit ce2cf7131f
3 changed files with 33 additions and 31 deletions

View File

@@ -79,6 +79,7 @@ function M.draw()
:configure_special_map(get_special_files_map())
:configure_picture_map(picture_map)
:configure_opened_file_highlighting(vim.g.nvim_tree_highlight_opened_files)
:configure_git_icons_padding(vim.g.nvim_tree_icon_padding)
:build_header(view.is_root_folder_visible(core.get_cwd()))
:build(core.get_explorer())
:unwrap()