-
Notifications
You must be signed in to change notification settings - Fork 21
/
Makefile
36 lines (33 loc) · 1.19 KB
/
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
play:
@echo "> create playground..."
@mkdir -p playground/config/nvim/lua
@mkdir -p playground/config/nvim/plugin
@ln -sf $(PWD)/lua/tabby $(PWD)/playground/config/nvim/lua
@ln -sf $(PWD)/plugin/tabby.vim $(PWD)/playground/config/nvim/plugin/tabby.vim
@echo "> sync plugins..."
@nvim -u ./playground/config.lua --headless "+Lazy! sync" +qa
@echo "> run tests nvim..."
@nvim -u ./playground/config.lua -R -p lua/tabby/feature/tabs.lua lua/tabby/feature/lines.lua \
"+0tabnew" "+terminal" "+tabnext $$" "+vs README.md"
clear-play:
@echo "> remove test environment..."
@-rm -rf ./playground/config ./playground/data ./playground/state ./playground/cache
@git checkout -- playground/config.lua
gendoc:
@echo "> generate documents..."
@panvimdoc \
--project-name tabby \
--input-file README.md \
--vim-version 0.5 \
--toc 'true' \
--description 'A declarative, highly configurable tabline plugin' \
--dedup-subheadings 'true' \
--demojify 'false' \
--treesitter 'true' \
--ignore-rawblocks 'true' \
--doc-mapping 'false' \
--doc-mapping-project-name 'true' \
--shift-heading-level-by -1 \
--increment-heading-level-by 0
check-typo:
@typos lua/**/*.lua README.md