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

fzf-lua #2

Closed
M1Sports20 opened this issue Feb 28, 2023 · 2 comments · Fixed by #10
Closed

fzf-lua #2

M1Sports20 opened this issue Feb 28, 2023 · 2 comments · Fixed by #10

Comments

@M1Sports20
Copy link

I am using ibhagwan/fzf-lua with this plugin. When I toggle the fzf menu the cursor row stays hidden for the rest of the life of the vim session.

Feel free to close, I haven't had time to further debug. I just wanted to make you aware of it.

@tummetott
Copy link
Owner

Thank you for reporting this. I'm aware of the bug. It also happens with other plugins.

Some background information: This plugin tries to distinguish between cursorline changes made by the user (with e.g. set cursorline) and local cursorline changes made by plugins for their local windows. However, the distinction is not bullet proof since (n)vim does not offer a reliable way to achieve this. A solution would be to create a user command (like :ReticleCursorlineToggle) which wraps around the native vim command and updates the plugin state. I hesitated implementing it, because I thought I might come up with a better solution which would hook into vims native set cursorline command. I'm still thinking about it, but I'll promise I'll fix it soon.

@M1Sports20
Copy link
Author

No rush. I actually just tried switching to telescope and it seems to work okay with that.

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