Skip to content

Commit 9492936

Browse files
committed
rename tab open -> open on tab
1 parent 56da0c4 commit 9492936

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ require'nvim-tree'.setup {
4242
-- open the tree when running this setup function
4343
open_on_setup = false,
4444
-- will not open on setup if the filetype is in this list
45-
ignore_ft_on_setup = {},
45+
ignore_ft_on_setup = {},
4646
-- closes neovim automatically when the tree is the last **WINDOW** in the view
4747
auto_close = false,
4848
-- 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,
5050
-- hijack the cursor in the tree to put it at the start of the filename
5151
hijack_cursor = false,
5252
-- updates the root directory of the tree on `DirChanged` (when your run `:cd` usually)

doc/nvim-tree-lua.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ function.
6969
disable_netrw = true,
7070
hijack_netrw = true,
7171
open_on_setup = false,
72-
ignore_ft_on_setup = {},
72+
ignore_ft_on_setup = {},
7373
auto_close = false,
74-
tab_open = false,
74+
open_on_tab = false,
7575
hijack_cursor = false,
7676
update_cwd = false,
7777
update_focused_file = {
@@ -113,7 +113,7 @@ Here is a list of the options available in the setup call:
113113
type: `boolean`
114114
default: `false`
115115

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
117117
tabpage if the tree was previously open.
118118
type: `boolean`
119119
default: `false`

lua/nvim-tree.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ local function setup_autocommands(opts)
380380
if opts.auto_close then
381381
vim.cmd "au WinClosed * lua require'nvim-tree'.on_leave()"
382382
end
383-
if opts.tab_open then
383+
if opts.open_on_tab then
384384
vim.cmd "au TabEnter * lua require'nvim-tree'.tab_change()"
385385
end
386386
if opts.hijack_cursor then
@@ -400,8 +400,8 @@ local DEFAULT_OPTS = {
400400
disable_netrw = true,
401401
hijack_netrw = true,
402402
open_on_setup = false,
403+
open_on_tab = false,
403404
auto_close = false,
404-
tab_open = false,
405405
hijack_cursor = false,
406406
update_cwd = false,
407407
update_focused_file = {

0 commit comments

Comments
 (0)