mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
fix(docs): uncrustify.cfg location #15817
This commit is contained in:
parent
ac973d5532
commit
09307e64df
@ -220,10 +220,11 @@ You can lint a single file (but this will _not_ exclude legacy errors):
|
|||||||
- Style rules are (mostly) defined by `src/uncrustify.cfg` which tries to match
|
- Style rules are (mostly) defined by `src/uncrustify.cfg` which tries to match
|
||||||
the [style-guide]. To use the Nvim `gq` command with `uncrustify`:
|
the [style-guide]. To use the Nvim `gq` command with `uncrustify`:
|
||||||
```
|
```
|
||||||
if !empty(findfile('src/.uncrustify', ';'))
|
if !empty(findfile('src/uncrustify.cfg', ';'))
|
||||||
setlocal formatprg=uncrustify\ -q\ -c\ src/uncrustify.cfg\ --replace\ --no-backup
|
setlocal formatprg=uncrustify\ -q\ -l\ C\ -c\ src/uncrustify.cfg\ --no-backup
|
||||||
endif
|
endif
|
||||||
```
|
```
|
||||||
|
The required version of `uncrustify` is specified in `uncrustify.cfg`.
|
||||||
- There is also `.clang-format` which has drifted from the [style-guide], but
|
- There is also `.clang-format` which has drifted from the [style-guide], but
|
||||||
is available for reference. To use the Nvim `gq` command with `clang-format`:
|
is available for reference. To use the Nvim `gq` command with `clang-format`:
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user