Skip to content

Commit 4cba494

Browse files
committed
Renamed option to eject
1 parent 4a40050 commit 4cba494

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

doc/nvim-tree-lua.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ applying configuration.
494494
},
495495
open_file = {
496496
quit_on_open = false,
497-
prevent_buffer_override = true,
497+
eject = true,
498498
resize_window = true,
499499
window_picker = {
500500
enable = true,
@@ -1206,7 +1206,7 @@ Configuration for various actions.
12061206
Closes the explorer when opening a file.
12071207
Type: `boolean`, Default: `false`
12081208

1209-
*nvim-tree.actions.open_file.prevent_buffer_override*
1209+
*nvim-tree.actions.open_file.eject*
12101210
Prevent new opened file from opening in the same window as the tree.
12111211
Type: `boolean`, Default: `true`
12121212

lua/nvim-tree.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ local function setup_autocommands(opts)
196196
create_nvim_tree_autocmd("BufWipeout", {
197197
pattern = "NvimTree_*",
198198
callback = function()
199-
if utils.is_nvim_tree_buf(0) and opts.actions.open_file.prevent_buffer_override then
199+
if utils.is_nvim_tree_buf(0) and opts.actions.open_file.eject then
200200
view._prevent_buffer_override()
201201
end
202202
end,
@@ -545,7 +545,7 @@ local DEFAULT_OPTS = { -- BEGIN_DEFAULT_OPTS
545545
},
546546
open_file = {
547547
quit_on_open = false,
548-
prevent_buffer_override = true,
548+
eject = true,
549549
resize_window = true,
550550
window_picker = {
551551
enable = true,

0 commit comments

Comments
 (0)