You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to use helix to replace vscode to write C/C++ code recently. But I notice that helix can't show the struct member suggestions when I type a . after a struct pointer automatically. I use the same clangd args in vscode, everything works fine. So I'm guessing this is a feature we haven't being implemented currently.
In order to troubleshoot this, I turn on clangd --log=verbose flag and find out helix doesn't send context.triggerCharacter and context.triggerKind to clangd. Maybe it's the root cause of this problem. But I didn't find out how to modify this behavior.
Originally posted by GeekZJJ February 21, 2024
Hi! I try to use helix to replace vscode to write C/C++ code recently. Everything is good, but I notice that helix can't show the struct member suggestions when I type a . after a struct pointer automatically. I use the same clangd args in vscode, everything works fine. So I'm guessing this is a feature we haven't being implemented currently. Am I right?
My language.toml file is as below:
Edited:
I found that in the language.toml file I make some mistake, which make clangd's args I configured don't make any sense. The [language-servers.clangd] should be [language-server.clangd]. Correct file is as below.
No need to duplicate the discussion. If we can narrow down the exact cause of the difference between vscode and helix then we can make an issue focusing on that but this is just fragmenting the debugging discussion
@the-mikedavis Got that. So sorry for my duplicate post. @pascalkuthe Maybe that is because of my out of date helix version. I will try it when ppa:maveonair/helix-editor have an update version with the commit mentioned above. Thanks.
I try to use helix to replace vscode to write C/C++ code recently. But I notice that helix can't show the struct member suggestions when I type a
.
after a struct pointer automatically. I use the same clangd args in vscode, everything works fine. So I'm guessing this is a feature we haven't being implemented currently.In order to troubleshoot this, I turn on clangd
--log=verbose
flag and find out helix doesn't sendcontext.triggerCharacter
andcontext.triggerKind
to clangd. Maybe it's the root cause of this problem. But I didn't find out how to modify this behavior.Originally posted by @GeekZJJ in #9685 (reply in thread)
Discussed in #9685
Originally posted by GeekZJJ February 21, 2024
Hi! I try to use helix to replace vscode to write C/C++ code recently. Everything is good, but I notice that helix can't show the struct member suggestions when I type a
.
after a struct pointer automatically. I use the same clangd args in vscode, everything works fine. So I'm guessing this is a feature we haven't being implemented currently. Am I right?My
language.toml
file is as below:Edited:
I found that in the
language.toml
file I make some mistake, which make clangd's args I configured don't make any sense. The[language-servers.clangd]
should be[language-server.clangd]
. Correct file is as below.The text was updated successfully, but these errors were encountered: