diff options
Diffstat (limited to 'CONTRIBUTING.md')
-rw-r--r-- | CONTRIBUTING.md | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index cf6bbb96..f1a8ea57 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -18,7 +18,8 @@ One of the best ways to begin contributing in a meaningful way is by helping fin ## Setting up development tools 1. Install [stylua](https://github.com/johnnymorganz/stylua#installation) -2. Copy tools/.stylua.toml into the LunarVim root directory + +2. Install [shfmt](https://github.com/mvdan/sh#shfmt) ## Some Guidelines @@ -39,6 +40,16 @@ ex: (feature|bugfix|hotfix)/what-my-pr-does All lua code is formatted with [Stylua](https://github.com/JohnnyMorganz/StyLua). * Use snake_case * Avoid platform-dependent code +```bash +stylua --config-path ./utils/.stylua.toml -c . +``` + +All shell code is formatted according to [Google Shell Style Guide](https://google.github.io/styleguide/shellguide.html) +* use two spaces instead of tabs +```bash +shfmt -i 2 -ci -l -d . +``` + ## Communication |