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:
parent
9563a11ce0
commit
17d5bd64e8
@ -202,7 +202,7 @@ require'nvim-tree'.setup { -- BEGIN_DEFAULT_OPTS
|
||||
},
|
||||
open_file = {
|
||||
quit_on_open = false,
|
||||
resize_window = false,
|
||||
resize_window = true,
|
||||
window_picker = {
|
||||
enable = true,
|
||||
chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",
|
||||
|
||||
@ -170,7 +170,7 @@ Values may be functions. Warning: this may result in unexpected behaviour.
|
||||
},
|
||||
open_file = {
|
||||
quit_on_open = false,
|
||||
resize_window = false,
|
||||
resize_window = true,
|
||||
window_picker = {
|
||||
enable = true,
|
||||
chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",
|
||||
@ -499,7 +499,7 @@ Configuration for various actions.
|
||||
|
||||
*nvim-tree.actions.open_file.resize_window*
|
||||
Resizes the tree when opening a file.
|
||||
Type: `boolean`, Default: `false`
|
||||
Type: `boolean`, Default: `true`
|
||||
|
||||
*nvim-tree.actions.open_file.window_picker*
|
||||
Window picker configuration.
|
||||
|
||||
@ -428,7 +428,7 @@ local DEFAULT_OPTS = { -- BEGIN_DEFAULT_OPTS
|
||||
},
|
||||
open_file = {
|
||||
quit_on_open = false,
|
||||
resize_window = false,
|
||||
resize_window = true,
|
||||
window_picker = {
|
||||
enable = true,
|
||||
chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user