Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (31 loc) · 1.53 KB
/
Copy pathMakefile
File metadata and controls
38 lines (31 loc) · 1.53 KB
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
28
29
30
31
32
33
34
35
36
37
38
.PHONY: check check-format check-lint check-config check-compatibility format
MASON_BIN ?= $(HOME)/.local/share/nvim/mason/bin
STYLUA ?= $(MASON_BIN)/stylua
SELENE ?= $(MASON_BIN)/selene
NVIM_BIN ?= nvim
LUA_TARGETS := init.lua lua after tests
check: check-format check-lint check-config
check-format:
$(STYLUA) --check $(LUA_TARGETS)
check-lint:
$(SELENE) $(LUA_TARGETS)
check-config: check-compatibility
$(NVIM_BIN) --headless -u NONE -i NONE -l tests/dap_ui.lua
$(NVIM_BIN) --headless -u NONE -i NONE -l tests/config_refinement.lua DiffviewOpen
$(NVIM_BIN) --headless -u NONE -i NONE -l tests/neotest_scope.lua
$(NVIM_BIN) --headless -u NONE -i NONE -l tests/python_venv_picker.lua
$(NVIM_BIN) --headless -u NONE -i NONE -l tests/root_policy.lua
$(NVIM_BIN) --headless -u NONE -i NONE -l tests/lsp_rename.lua
$(NVIM_BIN) --headless -u NONE -i NONE -l tests/session_scrub.lua
$(NVIM_BIN) --headless -u NONE -i NONE -l tests/session_workspace.lua
$(NVIM_BIN) --headless -u NONE -i NONE -l tests/live_hunks.lua
$(NVIM_BIN) --headless -u NONE -i NONE -l tests/lazy_bootstrap.lua
$(NVIM_BIN) --headless -u NONE -i NONE -l tests/portability.lua
$(NVIM_BIN) --headless -u NONE -i NONE -l tests/format_dir.lua
$(NVIM_BIN) --headless -u NONE -i NONE -l tests/gotestsum_build.lua
check-compatibility:
$(NVIM_BIN) --headless -u NONE -i NONE -l tests/persist_preferences.lua
$(NVIM_BIN) --headless -u NONE -i NONE -l tests/compatibility.lua
$(NVIM_BIN) --headless -u NONE -i NONE -l tests/java_virtual_buffers.lua
format:
$(STYLUA) $(LUA_TARGETS)