mirror of
https://github.com/neovim/neovim.git
synced 2026-11-02 20:30:40 -06:00
fix(style): drop clang-format #39514
Problem: C formatting is enforced in CI via uncrustify, but when working on C code clangd formats on save via clang-format, forcing users to manually run `make formatc` after they're done. Solution: disable clang-format.
This commit is contained in:
1 parent
9734f33bc7
commit
ad2cf23435
3 files changed
+1
-76
No files matched your search
@@ -214,13 +214,6 @@ make lint # or lintc, lintlua, lintquery, lintdoc
|
||||
setlocal formatprg=uncrustify\ -q\ -l\ C\ -c\ src/uncrustify.cfg\ --no-backup
|
||||
endif
|
||||
```
|
||||
- There is also `.clang-format` which is "mostly" aligned with uncrustify.
|
||||
To use the Nvim `gq` command with `clang-format`:
|
||||
```vim
|
||||
if !empty(findfile('.clang-format', ';'))
|
||||
setlocal formatprg=clang-format\ -style=file
|
||||
endif
|
||||
```
|
||||
|
||||
### Navigate
|
||||
|
||||
|
||||
Reference in new issue
Block a user