-
Notifications
You must be signed in to change notification settings - Fork 156
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
Neovim: Autocompletion not working if not on the start of the line #891
Comments
Thanks for reporting, I've repro'd in VSCode. This error is caused by a classic off-by-one error in the |
@baronfel I did |
That version should be correct - with that same version in Ionide I cannot reproduce any issue you've reported here :-/ |
@baronfel I am getting this error in funcion |
Can you get the raw LSP call for the |
here I tried to type:
|
@baronfel here I tried to type
|
The error in your second message is for SignatureHelp, not completions, so I'll set that to the side for now. More interestingly - the completion request returns without error in this case, just with an empty array of suggestions. I repro this response in Ionide for VSCode, however it seems that VSCode implements some sort-of last-chance completion list with items that start with So I think you're consistent here, and if anything we could look into enhancements in the completion functionality. |
Yeah enhancement to completion would definitely be super helpful for text editors that aren't VSCode. |
I'd love it if you opened a discussion or issue about what kind of experience you'd like to have in different completion scenarios! Even if some are hard to do, at least we'd have a list to work towards. |
I'm still at the early stage of learning the language, so not sure what would be the best, but I'll try to open an issue. |
@baronfel, turn off |
This issue was originally submitted in the ionide plugin for vim, but I think the problem is with FsAutoComplete. see here
Completion works if I type from the beginning of the line.
But if there is anything before my cursor, autocompletion does not work.
I also see error when starting a new line in a function block:
** Environmen:
OS: Archlinux
Vim / Neovim version: NVIM v0.7.0-dev+1241-g08d9d74fd
dotnet SDK version: 6.0.102
mono / .Net Framework version: 6.0.102
Here is my Neovim configuration to setup the lsp:
The text was updated successfully, but these errors were encountered: