Skip to content
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

clang-format not loaded #16163

Closed
janemba opened this issue Oct 17, 2023 · 2 comments
Closed

clang-format not loaded #16163

janemba opened this issue Oct 17, 2023 · 2 comments

Comments

@janemba
Copy link

janemba commented Oct 17, 2023

Hello,

Spacemacs doesn't seem to load my clang-format config which uses Allman style formatting.\

My C code is formatted that way:

while (1)
   {
   }

It look like google style and I don't know where to check in spacemacs.

My config variables is the following:

     (lsp :variables lsp-lens-enable t
          :variables lsp-modeline-diagnostics-scope :file
          :variables lsp-headerline-breadcrumb-segments '(project file symbols))
     (c-c++ :variables c-c++-backend 'lsp-clangd
            :variables c-c++-lsp-enable-semantic-highlight 'rainbow
            :variables c-c++-lsp-semantic-highlight-method 'overlay
            :variables c-c++-backend 'rtags
            :variables c-c++-enable-clang-format-on-save t
            :variables  clang-format-style "auto")

How can I fix it ?

@alexey0308
Copy link

Hi @janemba, in the config you set the backend twice: clangd and rtags. Does it work if you remove the rtags line?

@janemba
Copy link
Author

janemba commented Nov 12, 2023

@alexey0308

Thanks it works.

@janemba janemba closed this as completed Nov 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants