aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkylo252 <59826753+kylo252@users.noreply.github.com>2021-10-02 23:32:18 +0200
committerGitHub <noreply@github.com>2021-10-02 14:32:18 -0700
commit09307e64df3fd072d69201629a3b5bf719d42d55 (patch)
treecea6e24fd3e527cfe96d445008a8e169246f2e78
parentac973d553261c07586e588754994e75ae84e5133 (diff)
downloadrneovim-09307e64df3fd072d69201629a3b5bf719d42d55.tar.gz
rneovim-09307e64df3fd072d69201629a3b5bf719d42d55.tar.bz2
rneovim-09307e64df3fd072d69201629a3b5bf719d42d55.zip
fix(docs): uncrustify.cfg location #15817
-rw-r--r--CONTRIBUTING.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index cd17b93462..fe3540f1f6 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -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
the [style-guide]. To use the Nvim `gq` command with `uncrustify`:
```
- if !empty(findfile('src/.uncrustify', ';'))
- setlocal formatprg=uncrustify\ -q\ -c\ src/uncrustify.cfg\ --replace\ --no-backup
+ if !empty(findfile('src/uncrustify.cfg', ';'))
+ setlocal formatprg=uncrustify\ -q\ -l\ C\ -c\ src/uncrustify.cfg\ --no-backup
endif
```
+ The required version of `uncrustify` is specified in `uncrustify.cfg`.
- 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`:
```