sublimelsp / LSP-clangd

C/C++ support for Sublime's LSP plugin provided through clangd.
MIT License
42 stars 1 forks source link

file indentation #27

Closed GustavoOly closed 5 months ago

GustavoOly commented 5 months ago

For some reason, Sublime's tab width does not generate the effect of indenting a .c file using clangd. When indenting my code (even with tab width with other values) it always indents to the value tab width 2.

LDAP commented 5 months ago

You have to configure clangd with a .clang-format file in the root of your project. For example

IndentWidth: 4