fix: do not indent for arrows when indent markers is active

This commit is contained in:
kiyan
2021-11-28 15:24:58 +01:00
parent 3916c0fc60
commit 6488075d6a

View File

@@ -381,7 +381,10 @@ function M.draw(tree, reload)
lines = {}
hl = {}
local show_arrows = icon_state.show_folder_icon and icon_state.show_folder_arrows
local show_arrows =
vim.g.nvim_tree_indent_markers ~= 1
and icon_state.show_folder_icon
and icon_state.show_folder_arrows
_padding.reload_padding_function()
icon_state = config.get_icon_state()
update_draw_data(tree, show_arrows and 2 or 0, {})