Skip to content

Commit c38bd3c

Browse files
authored
ci: add v0.11.7 to the test matrix (#56)
* ci: add `v0.11.7` to the test matrix * test: rollback treesitter branch to master
1 parent b95390d commit c38bd3c

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
pull_request:
44
branches:
55
- "master"
6+
- "v*-compat"
67
concurrency:
78
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
89
cancel-in-progress: true
@@ -33,7 +34,7 @@ jobs:
3334
matrix:
3435
os: [ubuntu-latest]
3536
cc: [gcc]
36-
rev: [nightly, stable]
37+
rev: [nightly, stable, "v0.11.7"]
3738
runs-on: ${{ matrix.os }}
3839
env:
3940
CC: ${{ matrix.cc }}

scripts/minimal_init.lua

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ local function add_dependence(url, name, ...)
2525
end
2626

2727
add_dependence("https://github.com/nvim-lua/plenary.nvim", "plenary.nvim")
28-
add_dependence("https://github.com/nvim-treesitter/nvim-treesitter", "nvim-treesitter", "--branch", "main")
29-
add_dependence("https://github.com/nvim-treesitter/nvim-treesitter-textobjects", "nvim-treesitter-textobjects", "--branch", "main")
28+
add_dependence("https://github.com/nvim-treesitter/nvim-treesitter", "nvim-treesitter", "--branch", "master")
29+
add_dependence("https://github.com/nvim-treesitter/nvim-treesitter-textobjects", "nvim-treesitter-textobjects", "--branch", "master")
3030
add_dependence("https://github.com/AbaoFromCUG/websocket.nvim", "websocket.nvim")
3131
add_dependence("https://github.com/nvim-neotest/nvim-nio", "nvim-nio")
3232
add_dependence("https://github.com/pysan3/pathlib.nvim", "pathlib.nvim")
@@ -38,6 +38,10 @@ vim.opt.rtp:append(vim.fs.joinpath(__project_root__, "after"))
3838
vim.cmd("runtime plugin/plenary.vim")
3939
require("plenary.busted")
4040

41-
require("nvim-treesitter").setup({})
42-
require("nvim-treesitter").install({ "lua", "python", "markdown" }):wait()
41+
42+
require('nvim-treesitter.configs').setup {
43+
ensure_installed = { "python", "r", "markdown", "markdown_inline" },
44+
sync_install = true,
45+
auto_install = true,
46+
}
4347
vim.opt.rtp:append(vim.fs.joinpath(vim.fn.stdpath("data"), "site"))

0 commit comments

Comments
 (0)