jaypei / emacs-neotree

A emacs tree plugin like NerdTree for Vim.
GNU General Public License v3.0
1.55k stars 147 forks source link

Request: Automatically set neo-tree width when directory opens #272

Open fourcolors opened 6 years ago

fourcolors commented 6 years ago

is it possible to have the width of neotree to automatically adjust when opening, closing directories? Or at least have hook for it. I was using nerdTREE and was able to press w to make the width adjust and would love to have something similar.

shreyas-a-s commented 5 months ago

I found this option recently. Is this what you are looking for? https://github.com/nvim-neo-tree/neo-tree.nvim/blob/8c89efb93b8383666a6f989762c2f610f5f2c930/lua%2Fneo-tree%2Fdefaults.lua#L313 And the keymap: https://github.com/nvim-neo-tree/neo-tree.nvim/blob/8c89efb93b8383666a6f989762c2f610f5f2c930/lua%2Fneo-tree%2Fdefaults.lua#L370