vim-settings/.pre-commit-config.yaml
ViViDboarder afa67c1b0c Switch to none-ls and selene for lua checks
Also moves pre-commit hooks to system hooks to make sure editing and committing
versions match
2024-11-04 11:37:33 -08:00

34 lines
816 B
YAML

---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/Kuniwak/vint
rev: v0.4a3
hooks:
- id: vint
exclude: >
(?x)^(
vim/colors/.*\.vim
)$
- repo: local
hooks:
- id: sort-json
name: sort json files with jq
language: script
entry: ./scripts/sort-json.sh
files: "(\\.json$|^neovim/packer_snapshots/)"
types: [text]
- id: selene
name: An opinionated Lua code linter
entry: selene
language: system
types: [lua]
- id: stylua
name: An opinionated Lua code formatter
entry: selene
language: system
types: [lua]