Skip to content

Commit 55870bf

Browse files
committed
Add Justfile with tasks for testing plugin locally in isolation of user settings
1 parent f97f6d4 commit 55870bf

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

Justfile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
set ignore-comments := true
2+
set unstable := true
3+
4+
just := just_executable()
5+
vim := which('vim')
6+
nvim := which('nvim')
7+
8+
[default]
9+
[private]
10+
@help:
11+
{{ just }} --list --unsorted
12+
13+
[no-cd]
14+
preview-vim *ARGS: (preview vim + ' -N -u NORC -i NONE -c "filetype plugin on | syntax on"' ARGS)
15+
16+
[no-cd]
17+
preview-nvim *ARGS: (preview nvim + ' --clean' ARGS)
18+
19+
[no-cd]
20+
[private]
21+
preview vimcmd *ARGS:
22+
{{ vimcmd }} \
23+
-c {{ quote("let &runtimepath=\"" + justfile_directory() + ",\" . &runtimepath") }} \
24+
-c 'filetype detect' \
25+
{{ ARGS }}

0 commit comments

Comments
 (0)