feat: add ability to not hijack the unnamed buffer

This commit is contained in:
kiyan
2022-02-16 21:00:28 +01:00
parent 015e7e8611
commit 76d4ed5d77
4 changed files with 55 additions and 37 deletions

View File

@@ -84,6 +84,7 @@ function.
open_on_tab = false,
hijack_cursor = false,
update_cwd = false,
hijack_unnamed_buffer_when_opening = true,
diagnostics = {
enable = false,
show_on_dirs = false,
@@ -183,6 +184,12 @@ Here is a list of the options available in the setup call:
type: `boolean`
default: `false`
*nvim-tree.hijack_unnamed_buffer_when_opening*
- |hijack_unnamed_buffer_when_opening|: opens in place of the unnamed
buffer if it's empty.
type: `boolean`
default: `true`
*nvim-tree.hijack_directories*
- |hijack_directories|: hijacks new directory buffers when they are opened (`:e dir`).