-
Notifications
You must be signed in to change notification settings - Fork 182
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
Spaces don't trigger autocompletion #203
Comments
The above fix helped, but I still see the following in master with OS-X dev build 3154: Can you confirm if you see this difference, and what build/platform are you using? |
|
Thanks for solving that mystery! I will ask about that LSP bypassing that rule on the forums |
The Anaconda package recommends overriding the Python This together with the completion triggers and the snippet completions that cannot be disabled is starting to be a bit of a fight against Sublime's defaults (which are reasonable for their built-in completion functionality). |
Closing this after documenting/linking to the workaround. As it appears pull requests to adjust built-in completion rules are being merged, a willing volunteer may have some luck proposing a fix at https://github.com/sublimehq/Packages |
Under recommended settings, the LSP client does not emit a
textDocument/completion
request when an space is entered. This behaviour may limit some autocompletions on some languages, specially if they are required after a keyword. For instance, on Python an user may want to get package suggestions after writingimport
.Right now, the only option relies on using Sublime default/defined autocompletion key (e.g., Alt0 + /) shortcut after writing another character; if this shortcut is invoked just before after writing the keyboard
import
it will remove the whitespace and move the cursor back to the end of the keyboard, giving possible autocompletion options that involve the word "import". For illustrative purposes, here's a GIF of the current behaviour:The text was updated successfully, but these errors were encountered: