add view.indent_markers (#1134)
This commit is contained in:
committed by
GitHub
parent
83fe370d52
commit
d5e4f0655b
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user