CosmicNvim / cosmic-ui

Cosmic-UI is a simple wrapper around specific vim functionality. Built in order to provide a quick and easy way to create a Cosmic UI experience with Neovim!
GNU General Public License v3.0
162 stars 1 forks source link

fixed the width calculation of the renaming window (#4) #5

Closed jeff-dh closed 1 year ago

jeff-dh commented 1 year ago

as the title says...

I tried to add an event handler that would change the size of the input again if the text changed, but I get an exception that says I'm not allowed to change the window size in the event handler.....

I though about setting the width to something like #name + 10 to have some space if the new identifier name is supposed to get longer. What do you think about it?