-
Notifications
You must be signed in to change notification settings - Fork 188
/
Makefile
36 lines (30 loc) · 801 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
35
36
TEST = test/obsidian
# This is where you have plenary installed locally. Override this at runtime if yours is elsewhere.
PLENARY = ~/.local/share/nvim/lazy/plenary.nvim/
MINIDOC = ~/.local/share/nvim/lazy/mini.doc/
.PHONY : all
all : style lint test
.PHONY : test
test :
PLENARY=$(PLENARY) nvim \
--headless \
--noplugin \
-u test/minimal_init.vim \
-c "PlenaryBustedDirectory $(TEST) { minimal_init = './test/minimal_init.vim' }"
.PHONY: api-docs
api-docs :
MINIDOC=$(MINIDOC) nvim \
--headless \
--noplugin \
-u scripts/minimal_init.vim \
-c "luafile scripts/generate_api_docs.lua" \
-c "qa!"
.PHONY : lint
lint :
luacheck .
.PHONY : style
style :
stylua --check .
.PHONY : version
version :
@nvim --headless -c 'lua print("v" .. require("obsidian").VERSION)' -c q 2>&1