Add luacheck to lang servers and pre-commit

This commit is contained in:
ViViDboarder 2021-11-10 18:03:27 -08:00
parent 00d580eb1b
commit 4fb61693a8
2 changed files with 14 additions and 0 deletions

View File

@ -13,3 +13,14 @@ repos:
(?x)^(
vim/colors/.*\.vim
)$
- repo: local
hooks:
- id: luacheck
name: Luacheck
entry: luacheck
args:
- --globals
- vim
- --
language: system
types: [file, lua]

View File

@ -74,6 +74,9 @@ function install_linters() {
# Makefile
maybe_run go get -u github.com/mrtazz/checkmake
# Lua
maybe_run luarocks install luacheck
echo ""
}