Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Almo7aya authored Nov 30, 2024
2 parents f6c6e8e + 0725eb8 commit ad84c90
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
17 changes: 15 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
.PHONY: lint
.PHONY: lint fmt test clean

lint:
luacheck lua

fmt:
stylua --config-path stylua.toml --glob 'lua/**/*.lua' -- lua

test:
/tmp/openingh.nvim/:
mkdir -p /tmp/openingh.nvim

/tmp/openingh.nvim/plenary.nvim/: /tmp/openingh.nvim/
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim /tmp/openingh.nvim/plenary.nvim

/tmp/openingh.nvim/pack/vendor/opt/openingh.nvim/: /tmp/openingh.nvim/
mkdir -p /tmp/openingh.nvim/pack/vendor/opt
ln -s $$PWD /tmp/openingh.nvim/pack/vendor/opt

test: /tmp/openingh.nvim/plenary.nvim/ /tmp/openingh.nvim/pack/vendor/opt/openingh.nvim/
nvim --headless --noplugin -u tests/minimal.vim -c "PlenaryBustedDirectory tests/ {minimal_init = 'tests/minimal.vim'}"

clean:
rm -rf /tmp/openingh.nvim
4 changes: 2 additions & 2 deletions tests/minimal.vim
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
set rtp +=.
set rtp +=../plenary.nvim/
set rtp+=/tmp/openingh.nvim/plenary.nvim/
set packpath+=/tmp/openingh.nvim/


runtime! plugin/plenary.vim
Expand Down

0 comments on commit ad84c90

Please sign in to comment.