-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (21 loc) · 676 Bytes
/
Makefile
File metadata and controls
27 lines (21 loc) · 676 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
.PHONY: test lint format check-format
# Run tests
test:
nvim --headless --noplugin -u tests/minimal_init.vim -c "PlenaryBustedDirectory tests/spec {sequential = true}"
# Run linter
lint:
luacheck lua/ plugin/
# Format code
format:
stylua .
# Check formatting without modifying files
check-format:
stylua --check .
# Run all checks
check: check-format lint test
# Install development dependencies
install-dev:
@echo "Please install the following tools manually:"
@echo " - stylua: https://github.com/JohnnyMorganz/StyLua"
@echo " - luacheck: luarocks install luacheck"
@echo " - plenary.nvim: git clone https://github.com/nvim-lua/plenary.nvim ../plenary.nvim"