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

Why highlight references and echo diagnostics only in normal mode? #792

Closed
mitinarseny opened this issue Apr 14, 2020 · 4 comments
Closed
Labels

Comments

@mitinarseny
Copy link
Contributor

mitinarseny commented Apr 14, 2020

autocmd User lsp_float_closed call lsp#ui#vim#references#highlight(v:false)
      \ | nunmap <buffer> <Esc>

I'm just asking before submitting PR as it can be done for some reason...

P.S.: Why augroup is empty here?)

augroup lsp_float_preview_close
augroup end
autocmd! lsp_float_preview_close CursorMoved,CursorMovedI,VimResized *

@prabirshrestha
Copy link
Owner

Feel free to send a PR to support it in non normal mode.

@mitinarseny
Copy link
Contributor Author

I am just wondering if these lines have any particular reasons to exist? Were there any hidden reasons why not to support it in non-normal mode as these lines prevent it?

@prabirshrestha
Copy link
Owner

There is no particular reason for it.

We just need to make sure it is debounce properly so every cursor move doesn't cause flushing which causes diff computation which is heavy. Some users may not like to see errors as they type while some would prefer it but if debounce is handled it shouldn't be an issue.

@stale
Copy link

stale bot commented Oct 17, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Oct 17, 2020
@stale stale bot closed this as completed Oct 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants