-
Notifications
You must be signed in to change notification settings - Fork 10
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
Unable to use autocompletion. #37
Comments
Since auto-completion will work the same way as it does for other LSP-based integrations, do you have auto-completion working for any other languages that use LSP? There are at least a few ways to set auto completion up in Neovim so it would be best to know it is working in the general case before troubleshooting Idris2 in particular. As far as Idris2 in particular goes, there is one pretty big gotcha — the LSP server only works if you’ve got an ipkg file for the project you are editing. If you don’t, then auto-completion (along with all the other LSP functionality) does not work. |
Sorry for the late reply. As I was typing out this reply, I decided to reread the help file for your plugin. In doing so I realized I had missed the section that stated how to pass my setup directly to the lsp using the This is what it currently looks like: https://asciinema.org/a/HWNDc0TSuwFpf0G7KePmc4mUR Thanks for the help. |
I forgot to add, I am manually triggering the shortcut to check for completion options, it is not automatically suggesting them as I type. IDK if that helps. |
Your results look good to me at a glance; what about them is fishy to you? If it’s the way that autocompletion puts the function call in parents and adds holes for you, that is the way it is supposed to work. It’s been a feature request for the Idris2 LSP to support the more normal autocompletion where you just get the name of what you are typing without assuming you are invoking the function with all its arguments. |
Just a preface, I am pretty new to all of this, the depth of my experience with idris2 is (currently) just going past the
|
|
Your last two bullets would probably be good feature requests for the idris LSP if they aren’t already tracked over there. I’m not totally sure if case insensitivity is desirable to everyone but if so it would be a matter of code changes to the server. |
I’m not sure what the Lua LSP could be doing differently than the Idris one (or the nvim plugin, more likely) to cause auto-completion to show up while typing rather than on demand. I’ve got my Idris auto-completions showing up as I type but as I recall that was something I got automatically when I set |
I cannot seem to get autocompletion to work at all. Any help would be appreciated.
The text was updated successfully, but these errors were encountered: