diff options
| author | Jędrzej Boczar <yendreij@gmail.com> | 2021-03-13 22:46:45 +0100 |
|---|---|---|
| committer | Kiyan <yazdani.kiyan@protonmail.com> | 2021-04-23 21:21:38 +0200 |
| commit | 67f2c7149c0de39248f1bdeba1a4303b156c3199 (patch) | |
| tree | 1365bbaddf0570e2ab3d051bd3b4e7e2c876e2a6 /scripts | |
| parent | replace @class with @type (diff) | |
| download | nvim-treesitter-67f2c7149c0de39248f1bdeba1a4303b156c3199.tar nvim-treesitter-67f2c7149c0de39248f1bdeba1a4303b156c3199.tar.gz nvim-treesitter-67f2c7149c0de39248f1bdeba1a4303b156c3199.tar.bz2 nvim-treesitter-67f2c7149c0de39248f1bdeba1a4303b156c3199.tar.lz nvim-treesitter-67f2c7149c0de39248f1bdeba1a4303b156c3199.tar.xz nvim-treesitter-67f2c7149c0de39248f1bdeba1a4303b156c3199.tar.zst nvim-treesitter-67f2c7149c0de39248f1bdeba1a4303b156c3199.zip | |
Initial sketch of automated indent tests
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/minimal_init.lua | 10 | ||||
| -rwxr-xr-x | scripts/run_tests.sh | 7 |
2 files changed, 17 insertions, 0 deletions
diff --git a/scripts/minimal_init.lua b/scripts/minimal_init.lua new file mode 100644 index 000000000..ea85c6999 --- /dev/null +++ b/scripts/minimal_init.lua @@ -0,0 +1,10 @@ +vim.cmd [[set runtimepath+=.]] +vim.cmd [[runtime! plugin/plenary.vim]] +vim.cmd [[runtime! plugin/nvim-treesitter.vim]] + +vim.g.swapfile = false + +require('nvim-treesitter.configs').setup { + ensure_installed = 'maintained', + indent = { enable = true }, +} diff --git a/scripts/run_tests.sh b/scripts/run_tests.sh new file mode 100755 index 000000000..202d271a5 --- /dev/null +++ b/scripts/run_tests.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +HERE="$(dirname "$(realpath "${BASH_SOURCE[0]}")")" +cd $HERE/.. + +nvim --headless --noplugin -u scripts/minimal_init.lua \ + -c "PlenaryBustedDirectory lua/tests/indent/ { minimal_init = './scripts/minimal_init.lua' }" |
