unwanted electric indentation with Eglot/Clangd #1351
-
Lately I've started experiencing unwanted/unhelpful "electric indentation" (as in, a newline reformats the previous C/C++ syntactic unit in addition to inserting a newline and moving rightwards inside it) in cc-mode with Eglot & Clangd.
I'm using the vague "lately" because unfortunately I happen to have upgraded Eglot (to 1.16), Clangd (to 16.0.6), and possibly other Emacs packages at roughly the same time, so no idea where to even start looking for the culprit. Any ideas welcome! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
My crystal ball tells me it's the |
Beta Was this translation helpful? Give feedback.
-
adding |
Beta Was this translation helpful? Give feedback.
My crystal ball tells me it's the
onTypeFormatting
capability of this server. Useeglot-ignore-server-capabilities
to mark this capability as unwanted.