Is there a lua API to dynamically set the window width? #1047
-
Hi, I want to adjust neo-tree window width by my screen monitor's size, e.g. I always use fullscreen of Neovim, but when using GUI client, the I'm going to listen to |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, I did something related here. The API to resize neotree is just the Neovim window resize command, The issue is finding the window handle which takes some search code. The issue comes when supporting multiple Neovim-tabs. HTH! |
Beta Was this translation helpful? Give feedback.
Hi, I did something related here. The API to resize neotree is just the Neovim window resize command,
vim.api.nvim_win_set_width(tree_win_handle, neotree_width)
.The issue is finding the window handle which takes some search code. The issue comes when supporting multiple Neovim-tabs. HTH!