chore: allow configuring height
also fixes window management for top and bottom tree side
This commit is contained in:
@@ -58,7 +58,7 @@ require'nvim-tree'.setup {
|
||||
},
|
||||
-- hijack the cursor in the tree to put it at the start of the filename
|
||||
hijack_cursor = false,
|
||||
-- updates the root directory of the tree on `DirChanged` (when your run `:cd` usually)
|
||||
-- updates the root directory of the tree on `DirChanged` (when your run `:cd` usually)
|
||||
update_cwd = false,
|
||||
-- show lsp diagnostics in the signcolumn
|
||||
lsp_diagnostics = false,
|
||||
@@ -82,8 +82,10 @@ require'nvim-tree'.setup {
|
||||
},
|
||||
|
||||
view = {
|
||||
-- width of the window, can be either a number (columns) or a string in `%`
|
||||
-- width of the window, can be either a number (columns) or a string in `%`, for left or right side placement
|
||||
width = 30,
|
||||
-- height of the window, can be either a number (columns) or a string in `%`, for top or bottom side placement
|
||||
height = 30,
|
||||
-- side of the tree, can be one of 'left' | 'right' | 'top' | 'bottom'
|
||||
side = 'left',
|
||||
-- if true the tree will resize itself after opening a file
|
||||
|
||||
Reference in New Issue
Block a user