diff options
| author | Searidang Pa <dangsyncpa@gmail.com> | 2026-01-09 17:15:04 -0500 |
|---|---|---|
| committer | Searidang Pa <dangsyncpa@gmail.com> | 2026-01-09 17:15:04 -0500 |
| commit | 02eaf40bf28a4e283cfe0d829a314a42ba00503e (patch) | |
| tree | e1c959c52ecd95360022b1b0489d375251a8623a /scripts | |
| parent | ec28aeca307da38fd7888bb0bce077e75da80b79 (diff) | |
| download | a4-02eaf40bf28a4e283cfe0d829a314a42ba00503e.tar.xz a4-02eaf40bf28a4e283cfe0d829a314a42ba00503e.zip | |
test(minimal): drop go parser requirement; always run TSInstallSync
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/tests/minimal.vim | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/scripts/tests/minimal.vim b/scripts/tests/minimal.vim index 928594b..1579147 100644 --- a/scripts/tests/minimal.vim +++ b/scripts/tests/minimal.vim @@ -21,7 +21,8 @@ runtime! plugin/plenary.vim runtime! plugin/nvim-treesitter.lua lua <<EOF -local required_parsers = { "lua", "typescript", "go"} +-- so far, only lua and typescript parser are used in the test +local required_parsers = { "lua", "typescript" } local function missing_parsers(parsers) local missing = {} @@ -43,18 +44,16 @@ if #to_install > 0 then -- Only attempt installation if nvim-treesitter provided the command. if vim.fn.exists(":TSInstallSync") == 2 then - -- make "TSInstall*" available - vim.cmd("runtime! plugin/nvim-treesitter.vim") - vim.cmd("TSInstallSync " .. table.concat(to_install, " ")) - end + -- make "TSInstall*" available + vim.cmd("runtime! plugin/nvim-treesitter.vim") + vim.cmd("TSInstallSync " .. table.concat(to_install, " ")) +end - -- Re-check and fail fast with a helpful message. local still_missing = missing_parsers(required_parsers) if #still_missing > 0 then error( "Missing Tree-sitter parsers: " .. table.concat(still_missing, ", ") - .. "\nInstall them via :TSInstallSync <langs> or ensure nvim-treesitter is on runtimepath." ) end end |
