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

Allow popup to be used instead of preview in completeopt #2942

Merged
merged 1 commit into from Jan 1, 2020
Merged

Allow popup to be used instead of preview in completeopt #2942

merged 1 commit into from Jan 1, 2020

Conversation

ghost
Copy link

@ghost ghost commented Dec 22, 2019

Some language servers send additional info (e.g. documentation, see #2905) along with auto-completion which is displayed in a preview window or not displayed at all, depending on whether preview is present in completeopt. For certain language severs (e.g. pyls), the preview option causes the window content to move which is very annoying (see #2463). However, the user may still want to see the extra info by using the popup option for completeopt, but since completeopt is overwritten by ALE before calling the auto-complete, this is not currently possible. This PR makes ALE respect the popup setting if the user has set it.

@ghost
Copy link
Author

ghost commented Dec 22, 2019

Since this is such a minor change, I haven't added any tests.

@w0rp
Copy link
Member

w0rp commented Jan 1, 2020

Nice and simple.

Cheers! 🍻

@w0rp w0rp merged commit 7a4f5ce into dense-analysis:master Jan 1, 2020
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 this pull request may close these issues.

1 participant