chore(config): auto resize the tree by default when opening a file.

config.open_file.auto_resize is now true by default.
Breaking change for default configurations.
See https://github.com/kyazdani42/nvim-tree.lua/issues/1275#issuecomment-1133515999
This commit is contained in:
kiyan 2022-05-21 11:27:49 +02:00
parent 9563a11ce0
commit 17d5bd64e8
3 changed files with 4 additions and 4 deletions

View File

@ -202,7 +202,7 @@ require'nvim-tree'.setup { -- BEGIN_DEFAULT_OPTS
}, },
open_file = { open_file = {
quit_on_open = false, quit_on_open = false,
resize_window = false, resize_window = true,
window_picker = { window_picker = {
enable = true, enable = true,
chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890", chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",

View File

@ -170,7 +170,7 @@ Values may be functions. Warning: this may result in unexpected behaviour.
}, },
open_file = { open_file = {
quit_on_open = false, quit_on_open = false,
resize_window = false, resize_window = true,
window_picker = { window_picker = {
enable = true, enable = true,
chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890", chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",
@ -499,7 +499,7 @@ Configuration for various actions.
*nvim-tree.actions.open_file.resize_window* *nvim-tree.actions.open_file.resize_window*
Resizes the tree when opening a file. Resizes the tree when opening a file.
Type: `boolean`, Default: `false` Type: `boolean`, Default: `true`
*nvim-tree.actions.open_file.window_picker* *nvim-tree.actions.open_file.window_picker*
Window picker configuration. Window picker configuration.

View File

@ -428,7 +428,7 @@ local DEFAULT_OPTS = { -- BEGIN_DEFAULT_OPTS
}, },
open_file = { open_file = {
quit_on_open = false, quit_on_open = false,
resize_window = false, resize_window = true,
window_picker = { window_picker = {
enable = true, enable = true,
chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890", chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",