vim-settings/.pre-commit-config.yaml

38 lines
845 B
YAML
Raw Normal View History

2019-10-24 19:35:49 +00:00
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
2022-01-03 06:50:58 +00:00
rev: v4.1.0
2019-10-24 19:35:49 +00:00
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
2019-10-24 21:29:16 +00:00
- repo: https://github.com/Kuniwak/vint
2021-12-15 17:37:19 +00:00
rev: v0.4a3
2019-10-24 19:35:49 +00:00
hooks:
- id: vint
2019-10-24 20:27:01 +00:00
exclude: >
(?x)^(
vim/colors/.*\.vim
)$
- repo: local
hooks:
- id: luacheck
name: Luacheck
entry: luacheck
args:
- --globals
- vim
- --
language: system
types: [file, lua]
2022-01-03 06:50:58 +00:00
- repo: https://github.com/johnnymorganz/stylua
rev: v0.14.3
2021-12-15 17:37:19 +00:00
hooks:
- id: stylua-system
2022-03-01 00:31:56 +00:00
- repo: local
hooks:
- id: sort-json
name: sort json files with jq
language: script
entry: ./scripts/sort-json.sh
files: "(\\.json$|^neovim/packer_snapshots/)"