-
Notifications
You must be signed in to change notification settings - Fork 12
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 and coc.nvim setup does not work #36
Comments
I don't have the most experience with (neo)vim. Is it possible to add more logging to nvim/millet to see if e.g. nvim is sending millet file update messages and millet is ignoring them, or if nvim is not even sending anything? For millet, if the environment variable Additionally, if you give more detail for how to set up nvim with millet, I can try investigating on my end. As I mentioned I don't use nvim, so I'd appreciate instructions for a minimal reproducer that includes:
|
To install neovim: Install plug (the easiest for plugins): Create minimal config file for nvim (
Now we can start nvim and sync the COC install (in nvim): Now we need to tell COC to use millet (
COC requires node and yarn installed and in PATH. That should be it. Open SML project and you will be able to see what i am talking about. Regards |
I will try and enable debugging in nvim and coc.nvim and see how far i get. Regards |
I believe the issue is that:
I'm not sure if this is an issue with millet or the client. I can report that using watched file change events works in e.g. vs code (my primary editor). maybe while we investigate the root cause i can add a setting for millet that says: do not try to register for watched file change events, even if the client says they support them. you could then turn that on and millet would not attempt to ask the client to use watched file events, and just always use the text document events and not ignore them. |
As of 0dc5a5a, under {
"languageserver": {
"sml": {
"command": "...",
"filetypes": ["sml"],
"initializationOptions": {
"fs_watcher": false
}
}
}
} This corresponds with the new VS Code extension setting More generally, I've also written up a bit about configuring non-VS-Code editors with the language server init options. |
I have also released v0.10.1 with these changes. |
Steps to reproduce
configure coc.nvim to point to millet binary and open .sml file inside .mlb project ... errors and warnings are displayed on the left hand side. However this is the only time millet seems to be working. Type "aaaaaaa" inside the .sml file and save it, expected behaviour would be that new error is picked up ... but not. Millet seems not to be working except for that initial file opening.
Expected behavior
millet re-runs on file saving and displays the newly introduced errors and warnings.
Regards
The text was updated successfully, but these errors were encountered: