nvim-tree.lua
nvim-tree.lua copied to clipboard
adaptive window width?
Is this a question?
Can this functionality be implemented utilising API? Don't know
Is your feature request related to a problem? Please describe. I can only set a fixed window width, but when I open a java project, file name is out of tree window.
Describe the solution you'd like if file path is deep and cannot be rendered well, adjust window size and cursor position.
Describe alternatives you've considered
Additional context
Have a look at :h nvim-tree.view.width.
@yimingwangdell something like this could work:
keymap.set("n", "<leader>=", "<cmd>NvimTreeResize +5<CR>", { desc = "Increase file explorer width" })
keymap.set("n", "<leader>-", "<cmd>NvimTreeResize -5<CR>", { desc = "Decrease file explorer width" })