summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorThePrimeAgain <theprimeagain@theprimeagain.com>2025-12-03 09:08:57 -0700
committerThePrimeAgain <theprimeagain@theprimeagain.com>2025-12-03 09:08:57 -0700
commit51b69a298234ac527cee052906efc1d88acc1f8c (patch)
tree525598ed35aed1f1ad11b739cd8802e823d353b4 /Makefile
parent219a226f1a3bf3cd071dec74c4044857074bfdad (diff)
downloada4-51b69a298234ac527cee052906efc1d88acc1f8c.tar.xz
a4-51b69a298234ac527cee052906efc1d88acc1f8c.zip
working through testing
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..da472c4
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,18 @@
+lua_fmt:
+ echo "===> Formatting"
+ stylua lua/ --config-path=.stylua.toml
+
+lua_lint:
+ echo "===> Linting"
+ luacheck lua/ --globals vim
+
+lua_test:
+ echo "===> Testing"
+ nvim --headless --noplugin -u scripts/tests/minimal.vim \
+ -c "PlenaryBustedDirectory lua/vim-with-me {minimal_init = 'scripts/tests/minimal.vim'}"
+
+lua_clean:
+ echo "===> Cleaning"
+ rm /tmp/lua_*
+
+pr-ready: lua_clean lua_fmt lua_lint lua_test