-
Notifications
You must be signed in to change notification settings - Fork 155
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (19 loc) · 762 Bytes
/
Makefile
File metadata and controls
24 lines (19 loc) · 762 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
# Run formatting and linting checks (matches CI)
lint:
stylua --check lua/ --config-path=.stylua.toml
luacheck lua/ --globals vim
# Auto-fix formatting
fmt:
stylua lua/ --config-path=.stylua.toml
# Run all test files
test: deps/mini.nvim
nvim --headless --noplugin -u ./tests/scripts/minimal_init.lua -c "lua MiniTest.run()"
# Run test from file at `$FILE` environment variable
test_file: deps/mini.nvim
nvim --headless --noplugin -u ./tests/scripts/minimal_init.lua -c "lua MiniTest.run_file('$(FILE)')"
.PHONY: deps
deps: deps/mini.nvim
deps/mini.nvim:
@mkdir -p deps
git clone --filter=blob:none https://github.com/nvim-mini/mini.nvim deps/mini.nvim
git clone https://github.com/jbyuki/one-small-step-for-vimkind deps/osv