Replies: 4 comments 6 replies
-
Hi @ccoustet, interesting problem. I am not familiar with YCM, but if I had to take a guess I would say that the Language Server Protocol (LSP) requests should take precedence over any other form of autocomplete, or at least have the same "weight". What happens if you use YCM + fortls? P.S. Configure instructions for Vim |
Beta Was this translation helpful? Give feedback.
-
I also found this for configuring YCM with Language Servers https://github.com/ycm-core/YouCompleteMe#lsp-configuration |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
From YCM documentation,
From your answer, I realize that not all the possible errors are diagnosed. A few command line tests show that a non-closed do is detected, while missing args - e.g. voigt() - remains unreported (no warnings or errors detected). However I still need to understand how to configure YCM to provide fortls with the expected argument list, so that it works from vim. From the previous point I can imagine that YCM doesn't know how to feed fortls calls with proper arguments regarding hover, and that what is displayed is standard vim text analysis. However, I tried to write a tiny example and call fortls in command line mode:
Here real is the actual type of fff(1.2,3.3). However I would have expected something like: real x real -> real. Or may I have missed something in the way I test? |
Beta Was this translation helpful? Give feedback.
-
Hi,
I mostly code in C. I successfully configured clangd / YouCompleteMe / vim and benefit from all the clangd features, as expected.
As I sometimes code in Fortran, I wonder how I could make use of fortls, keeping all that works for C unchanged (keep using vim VS neovim, keep using YCM VS other completion plugins) ?
Does anyone there have experience/some success using the vim + YCM + fortls combo?
Thanks for any help.
Beta Was this translation helpful? Give feedback.
All reactions