File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -42,11 +42,11 @@ require'nvim-tree'.setup {
42
42
-- open the tree when running this setup function
43
43
open_on_setup = false ,
44
44
-- will not open on setup if the filetype is in this list
45
- ignore_ft_on_setup = {},
45
+ ignore_ft_on_setup = {},
46
46
-- closes neovim automatically when the tree is the last **WINDOW** in the view
47
47
auto_close = false ,
48
48
-- opens the tree when changing/opening a new tab if the tree wasn't previously opened
49
- tab_open = false ,
49
+ open_on_tab = false ,
50
50
-- hijack the cursor in the tree to put it at the start of the filename
51
51
hijack_cursor = false ,
52
52
-- updates the root directory of the tree on `DirChanged` (when your run `:cd` usually)
Original file line number Diff line number Diff line change @@ -69,9 +69,9 @@ function.
69
69
disable_netrw = true,
70
70
hijack_netrw = true,
71
71
open_on_setup = false,
72
- ignore_ft_on_setup = {},
72
+ ignore_ft_on_setup = {},
73
73
auto_close = false,
74
- tab_open = false,
74
+ open_on_tab = false,
75
75
hijack_cursor = false,
76
76
update_cwd = false,
77
77
update_focused_file = {
@@ -113,7 +113,7 @@ Here is a list of the options available in the setup call:
113
113
type: `boolean `
114
114
default: `false`
115
115
116
- - | tab_open | : opens the tree automatically when switching tabpage or opening a new
116
+ - | open_on_tab | : opens the tree automatically when switching tabpage or opening a new
117
117
tabpage if the tree was previously open.
118
118
type: `boolean `
119
119
default: `false`
Original file line number Diff line number Diff line change @@ -380,7 +380,7 @@ local function setup_autocommands(opts)
380
380
if opts .auto_close then
381
381
vim .cmd " au WinClosed * lua require'nvim-tree'.on_leave()"
382
382
end
383
- if opts .tab_open then
383
+ if opts .open_on_tab then
384
384
vim .cmd " au TabEnter * lua require'nvim-tree'.tab_change()"
385
385
end
386
386
if opts .hijack_cursor then
@@ -400,8 +400,8 @@ local DEFAULT_OPTS = {
400
400
disable_netrw = true ,
401
401
hijack_netrw = true ,
402
402
open_on_setup = false ,
403
+ open_on_tab = false ,
403
404
auto_close = false ,
404
- tab_open = false ,
405
405
hijack_cursor = false ,
406
406
update_cwd = false ,
407
407
update_focused_file = {
You can’t perform that action at this time.
0 commit comments