Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for floating windows #17

Open
laher opened this issue Oct 6, 2023 · 0 comments
Open

support for floating windows #17

laher opened this issue Oct 6, 2023 · 0 comments

Comments

@laher
Copy link

laher commented Oct 6, 2023

I currently use the standard vim movements <C-w> L / <C-W> R to move a floating window into a split.

It'd be nice if winshift.nvim could support the same movements, but when I try :WinShift left etc or :WinShift then an arrow, I'm seeing the following error:

../winshift.nvim/lua/winshift/lib.lua:458 attempt to index local 'target_leaf' (a nil value)

The line in question is here:

https://github.com/sindrets/winshift.nvim/blob/main/lua/winshift/lib.lua#L458

If I try a :WinShift swap, I get a similar error on line 99, attempt to index local 'a' (a nil value):

https://github.com/sindrets/winshift.nvim/blob/main/lua/winshift/lib.lua#L99

For background, I'm using the goto-preview plugin which presents me with floating windows which I'd like to convert to 'norma' windows. It is a bit unusual, but I figure there may be other use cases for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant