feat(view): ability to centralize view on entering (#1310)

This commit is contained in:
kylo252
2022-06-07 02:09:58 +02:00
committed by GitHub
parent 821f050fda
commit 1caca62854
4 changed files with 22 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ local events = require "nvim-tree.events"
M.View = {
adaptive_size = false,
centralize_selection = false,
tabpages = {},
cursors = {},
hide_root_folder = false,
@@ -394,6 +395,7 @@ end
function M.setup(opts)
local options = opts.view or {}
M.View.adaptive_size = options.adaptive_size
M.View.centralize_selection = options.centralize_selection
M.View.side = options.side
M.View.width = options.width
M.View.height = options.height