-
-
Notifications
You must be signed in to change notification settings - Fork 853
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
13 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
build/ | ||
doc/tags | ||
deps/ | ||
|
||
.luacheckcache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,10 @@ | ||
.PHONY: test lint docgen clean | ||
.PHONY: test lint docgen | ||
|
||
DEPS_DIR := deps | ||
PLENARY_DIR := $(DEPS_DIR)/plenary.nvim | ||
DEVICONS_DIR := $(DEPS_DIR)/nvim-web-devicions | ||
|
||
define git_clone_or_pull | ||
@mkdir -p $(dir $1) | ||
@if [ ! -d "$1" ]; then \ | ||
git clone --depth 1 $2 $1; \ | ||
else \ | ||
git -C "$1" pull; \ | ||
fi | ||
endef | ||
|
||
$(DEPS_DIR): | ||
@mkdir -p $@ | ||
|
||
plenary: | $(DEPS_DIR) | ||
$(call git_clone_or_pull,$(PLENARY_DIR),https://github.com/nvim-lua/plenary.nvim) | ||
|
||
test-deps: plenary | $(DEPS_DIR) | ||
$(call git_clone_or_pull,$(DEVICONS_DIR),https://github.com/nvim-tree/nvim-web-devicons) | ||
|
||
test: plenary | ||
test: | ||
nvim --headless --noplugin -u scripts/minimal_init.vim -c "PlenaryBustedDirectory lua/tests/automated/ { minimal_init = './scripts/minimal_init.vim' }" | ||
|
||
lint: | ||
luacheck lua/telescope | ||
|
||
# pinned tree-sitter-lua commit no longer works on nightly (0.10) | ||
docgen: | ||
nvim --headless --noplugin -u scripts/minimal_init.vim -c "luafile ./scripts/gendocs.lua" -c 'qa' | ||
|
||
clean: | ||
@rm -rf $(DEPS_DIR) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
set rtp+=. | ||
set rtp+=deps/plenary.nvim/ | ||
set rtp+=deps/tree-sitter-lua/ | ||
set rtp+=deps/nvim-web-devicons/ | ||
set rtp+=../plenary.nvim/ | ||
set rtp+=../tree-sitter-lua/ | ||
|
||
runtime! plugin/plenary.vim | ||
runtime! plugin/telescope.lua | ||
" runtime! plugin/ts_lua.vim | ||
|
||
let g:telescope_test_delay = 100 |