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 = {
|
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",
|
||||||
|
|||||||
@ -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.
|
||||||
|
|||||||
@ -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",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user