add view.indent_markers (#1134)

This commit is contained in:
Alexander Courtis
2022-04-10 23:40:29 +10:00
committed by GitHub
parent 83fe370d52
commit d5e4f0655b
6 changed files with 72 additions and 13 deletions

View File

@@ -256,7 +256,7 @@ function M.draw()
hl = {}
icon_state = _icons.get_config()
local show_arrows = vim.g.nvim_tree_indent_markers ~= 1
local show_arrows = not M.config.indent_markers.enable
and icon_state.show_folder_icon
and icon_state.show_folder_arrows
_padding.reload_padding_function()
@@ -289,4 +289,12 @@ function M.render_hl(bufnr)
end
end
function M.setup(opts)
M.config = {
indent_markers = opts.renderer.indent_markers,
}
require("nvim-tree.renderer.padding").setup(opts)
end
return M