-
-
Notifications
You must be signed in to change notification settings - Fork 127
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
Add Autocomplete with LSP #156
Comments
Hi ouuan Have Patience, One of our Cool Contributors will help you soon. |
MasRay's ccls will be best. Its fast and works on very nicely and have everything for C/C++ |
Also put these codes in a separate folder like include/lsp/CppLsp.h and similarly for source files. |
I will be making https://github.com/coder3101/lsp-cpp compatible to work with the editor. This would add Simple LSP for Editor. We don't need complex LSP like that of VSCODE because our editor works on single file mode and that is enough. |
QCodeEditor must modify its auto complete insertion text, because for auto completion of functions the LSP responds with text as below: void foo(int bar);
int main(){
fo|
} | Is the cursor. The LSP responds with following completion text
Insertion of this line is not valid rather, contents inside This preprocessing can be done from LSP client side as well but more preferred place is within |
The reason that stops me from using this is clangd. Clangd being more than a LSP that tightly integrates with the compiler makes programming easy. |
@madhur4127 Could you elaborate your comment? |
There is already LSP support. Even the Client we use currently support everything that LSP offers. It is just that we don't have UI/Code Editor that can show these things. |
Is the auto-completion still under works? I can use linting ok with clangd but I can't see the suggestions. |
Is your feature request related to a problem? Please describe.
QCodeEditor lacks of features like auto-completion, jump to ref and so on.
Describe the solution you'd like
Support language server.
Describe alternatives you've considered
Use scintilla for these features, but scintilla has many limitations, too.
Additional context
N/A
The text was updated successfully, but these errors were encountered: