forked from nvim-neorg/neorg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (26 loc) · 846 Bytes
/
Makefile
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
test:
nvim --headless \
-u tests/custom_init.vim \
-c "PlenaryBustedDirectory tests/ {minimal_init = 'tests/custom_init.vim'}"
ci:
nvim -u tests/custom_init.vim -c "TSUpdateSync norg" -c "qa!" && \
mkdir -p /tmp/neorg/parser && \
cp nvim-treesitter/parser/norg.so /tmp/neorg/parser && \
make test
testfile:
nvim --headless -u tests/custom_init.vim -c "PlenaryBustedFile $(FILE)"
ci-doc:
nvim -u tests/custom_init.vim -c "TSUpdateSync lua" -c "qa!" && \
mkdir -p /tmp/lua/parser && \
cp nvim-treesitter/parser/lua.so /tmp/lua/parser && \
make documentation
documentation:
nvim --clean --headless -u docgen/minimal_init.vim -c "luafile ./docgen/init.lua" -c 'qa'
format:
stylua -v --verify .
install_pre_commit:
cp scripts/pre-commit "$$(git rev-parse --git-dir)/hooks/"
tag:
./scripts/generate_tag.sh
check:
luacheck lua/