File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -494,7 +494,7 @@ applying configuration.
494
494
},
495
495
open_file = {
496
496
quit_on_open = false,
497
- prevent_buffer_override = true,
497
+ eject = true,
498
498
resize_window = true,
499
499
window_picker = {
500
500
enable = true,
@@ -1206,7 +1206,7 @@ Configuration for various actions.
1206
1206
Closes the explorer when opening a file.
1207
1207
Type: `boolean ` , Default: `false`
1208
1208
1209
- *nvim-tree.actions.open_file.prevent_buffer_override *
1209
+ *nvim-tree.actions.open_file.eject *
1210
1210
Prevent new opened file from opening in the same window as the tree.
1211
1211
Type: `boolean ` , Default: `true`
1212
1212
Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ local function setup_autocommands(opts)
196
196
create_nvim_tree_autocmd (" BufWipeout" , {
197
197
pattern = " NvimTree_*" ,
198
198
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
200
200
view ._prevent_buffer_override ()
201
201
end
202
202
end ,
@@ -545,7 +545,7 @@ local DEFAULT_OPTS = { -- BEGIN_DEFAULT_OPTS
545
545
},
546
546
open_file = {
547
547
quit_on_open = false ,
548
- prevent_buffer_override = true ,
548
+ eject = true ,
549
549
resize_window = true ,
550
550
window_picker = {
551
551
enable = true ,
You can’t perform that action at this time.
0 commit comments