-
-
Notifications
You must be signed in to change notification settings - Fork 22
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 get any autocomplete when opening fsx files #75
Comments
I guess it is caused by either Ionide-vim not recognizing For a workaround, creating an empty F# project in the same directory through |
FSAC does support loose loose fsx scripts (the compiler tooling interprets them as projects with a single source file and a standard set of project options). |
Is there a language association set up for fsx files (as opposed to fs files)? |
Yes, https://github.com/ionide/Ionide-vim/blob/master/ftdetect/fsharp.vim#L2-L3 So, my guess is that Ionide-vim is just failing to start FSAC if there are no https://github.com/ionide/Ionide-vim/blob/master/lua/ionide/init.lua#L45-L47 https://github.com/ionide/Ionide-vim/blob/master/autoload/fsharp.vim#L298-L300 |
Strangely enough doing this with VimPlug didnt seem to work but added via Mason with kickstart.nvim and it's workign now. Thanks for the suggestion. Any way i'd be able to make this work for standalone fsx files? Happy to close this for now however. |
Hi guys, |
Per discussion in ionide#75, the LSP server is not started when opening a bare .fsx file (not in a directory with a git repo, project, or solution file), at least with some installations and setups. Add wildcard pattern to match a root directory when it contains any "*.fsx" files, which, tautologically, and script file will match. Tested that this does start the server automatically for bare script files.
fix #75: Add root_dir pattern for "*.fsx"
Describe the bug
I have followed the guide and installed fsautocomplete globally and also installed the plugin. My init.vim file looks like the following.
To Reproduce
Steps to reproduce the behaviour:
dotnet tool install -g fsautocomplete
Expected behaviour
Expect a popup with some sort of autocomplete suggestion.
Screenshots

No Autocomplete suggestions at all
Environment (please complete the following information):
Additional context
Apologies if I have missed something or not understood. I am new to Neovim and trying to learn it and though F# being my favorite language I don't get a chance to use, i'd use it to try and learn some Neovim for fun so apologies of the question is obvious and I've missed something very clear.
The text was updated successfully, but these errors were encountered: