diff options
| author | theprimeagain <the.primeagen@gmail.com> | 2026-02-04 07:48:24 -0700 |
|---|---|---|
| committer | theprimeagain <the.primeagen@gmail.com> | 2026-02-04 07:48:24 -0700 |
| commit | 0edb0626773d7553f6a9bb7d7787d3959ffb4699 (patch) | |
| tree | 4868e1323a4e11a8617b718bb312e9de4d5c2d58 /scripts | |
| parent | 78710bdb37db7a8b08af071d10d8e041f39306d7 (diff) | |
| download | a4-0edb0626773d7553f6a9bb7d7787d3959ffb4699.tar.xz a4-0edb0626773d7553f6a9bb7d7787d3959ffb4699.zip | |
potential fix for github ci
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/tests/minimal.vim | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/tests/minimal.vim b/scripts/tests/minimal.vim index 30093ba..b1e80d6 100644 --- a/scripts/tests/minimal.vim +++ b/scripts/tests/minimal.vim @@ -23,6 +23,11 @@ runtime! plugin/nvim-treesitter.lua lua <<EOF vim.opt.rtp:append(vim.fn.stdpath('data') .. '/site') +-- Always setup nvim-treesitter so it knows where to find parsers +local install_dir = vim.fn.stdpath('data') .. '/site' +local ts = require('nvim-treesitter') +ts.setup({ install_dir = install_dir }) + -- parsers to attempt to install (for user convenience) local all_parsers = { 'c', 'cpp', 'go', 'lua', 'php', 'python', 'typescript', @@ -46,8 +51,7 @@ local function missing_parsers(parsers) end local function install_with_main_branch_api(parsers) - local install_dir = vim.fn.stdpath('data') .. '/site' - require('nvim-treesitter').setup({ install_dir = install_dir }) + -- setup is already done above, just install require('nvim-treesitter').install(parsers):wait(300000) end |
