Is there a way to disable on-typing assists? #1297
Answered
by
joaotavora
tomalexander
asked this question in
Q&A
Replies: 1 comment 3 replies
-
See variable eglot-ignored-server-capabilities
…On Thu, Sep 21, 2023, 20:17 Tom Alexander ***@***.***> wrote:
Rust-analyzer has some on-typing assists that will do things like
automatically inserting closing parenthesis/braces when you type an opening
parenthesis/brace
<https://rust-analyzer.github.io/manual.html#on-typing-assists>. Their
documentation states that for vscode this can be controlled by editing
settings.json and setting editor.formatOnType. As far as I can tell, that
is a vscode-specific setting so I don't think I could toggle it with the
initialization options since it does not appear in the list of
initialization options
<https://rust-analyzer.github.io/manual.html#configuration>. Does anyone
know if eglot has an equivalent setting I can disable?
(The context is I'm writing a bunch of code using nom, which is a very
parenthesis-heavy syntax, and this functionality is injecting parenthesis
in incorrect locations which is brutal to debug when you're 10+ parenthesis
levels deep.)
—
Reply to this email directly, view it on GitHub
<#1297>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAC6PQ5O6J64D5CHTFR43LLX3SHDVANCNFSM6AAAAAA5CA6HLY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
tomalexander
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Rust-analyzer has some on-typing assists that will do things like automatically inserting closing parenthesis/braces when you type an opening parenthesis/brace. Their documentation states that for vscode this can be controlled by editing
settings.json
and settingeditor.formatOnType
. As far as I can tell, that is a vscode-specific setting so I don't think I could toggle it with the initialization options since it does not appear in the list of initialization options. Does anyone know if eglot has an equivalent setting I can disable?(The context is I'm writing a bunch of code using nom, which is a very parenthesis-heavy syntax, and this functionality is injecting parenthesis in incorrect locations which is brutal to debug when you're 10+ parenthesis levels deep.)
Beta Was this translation helpful? Give feedback.
All reactions