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

Conflict with vim-scrolloff-fraction when using the nvim-float presenter #59

Closed
nkakouros opened this issue Mar 5, 2020 · 2 comments · Fixed by #60
Closed

Conflict with vim-scrolloff-fraction when using the nvim-float presenter #59

nkakouros opened this issue Mar 5, 2020 · 2 comments · Fixed by #60

Comments

@nkakouros
Copy link
Contributor

I might be asking too much, but there is a conflict with the vim-scrolloff-fraction plugin.

When both plugins are enabled, pressing zt actually moves the cursor. Using the preview presenter solves the issue, but does not look as good! :-D

Do you think it is possible to have both plugins work side by side?

@wellle
Copy link
Owner

wellle commented Mar 5, 2020

Thanks. I might look into this at some point. It'll have low priority for me though.

@nkakouros
Copy link
Contributor Author

nkakouros commented Mar 5, 2020

Perhaps it is easier to solve this on the other plugin's side. I saw that all they do is:

autocmd BufEnter,WinEnter,WinNew,VimResized *,*.*
        \ call ScrollOffFraction(g:scrolloff_fraction)

and that function sets &scrolloff. Maybe, if I expand this autocommand to run on a context-window-appeared/resized event, the problem could go away. Is there such an event I could try out?

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

Successfully merging a pull request may close this issue.

2 participants