File tree Expand file tree Collapse file tree 4 files changed +22
-5
lines changed Expand file tree Collapse file tree 4 files changed +22
-5
lines changed Original file line number Diff line number Diff line change 11/doc /tags
22/.tests /
3+ /.dev /
Original file line number Diff line number Diff line change 55 " cast-type-mismatch" ,
66 " missing-fields"
77 ],
8+ "runtime.version" : " LuaJIT" ,
89 "workspace.checkThirdParty" : false ,
910 "workspace.library" : [
10- " $VIMRUNTIME" ,
11+ " ./lua" ,
12+ " $VIMRUNTIME/lua" ,
13+ " .dev/lua/nvim"
1114 ]
1215}
Original file line number Diff line number Diff line change 11.PHONY : all
2- all : test
2+ all : dev test
33
44TEST_PATH := $(if $(TEST_PATH ) ,$(TEST_PATH ) ,lua/diffview/tests/)
55export TEST_PATH
@@ -12,9 +12,22 @@ export TEST_PATH
1212# $ TEST_PATH=tests/some/path make test
1313.PHONY : test
1414test :
15- nvim --headless -i NONE -n -u scripts/minimal_init.lua -c \
16- " PlenaryBustedDirectory $( TEST_PATH) { minimal_init = './scripts/minimal_init.lua' }"
15+ nvim --headless -i NONE -n -u scripts/test_init.lua -c \
16+ " PlenaryBustedDirectory $( TEST_PATH) { minimal_init = './scripts/test_init.lua' }"
17+
18+ .PHONY : dev
19+ dev : .dev/lua/nvim
20+
21+ .dev/lua/nvim :
22+ mkdir -p " $@ "
23+ git clone --filter=blob:none https://github.com/folke/neodev.nvim.git " $@ /repo"
24+ cd " $@ /repo" && git -c advice.detachedHead=false checkout ce9a2e8eaba5649b553529c5498acb43a6c317cd
25+ cp " $@ /repo/types/nightly/uv.lua" \
26+ " $@ /repo/types/nightly/cmd.lua" \
27+ " $@ /repo/types/nightly/alias.lua" \
28+ " $@ /"
29+ rm -rf " $@ /repo"
1730
1831.PHONY : clean
1932clean :
20- rm -rf .tests
33+ rm -rf .tests .dev
File renamed without changes.
You can’t perform that action at this time.
0 commit comments