We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad44142 commit 5c33926Copy full SHA for 5c33926
1 file changed
tests/minimal/init.lua
@@ -34,7 +34,7 @@ vim.opt.termguicolors = true
34
35
require('opencode')
36
37
--- Safely stub out treesitter start during tests. Accessing `vim.treesitter`
+-- Safely stub out treesitter during tests, using pcall(require, ...) so tests pass even if vim.treesitter is unavailable.
38
local ok, ts = pcall(require, 'vim.treesitter')
39
if ok and ts and ts.start then
40
ts.start = function() end
0 commit comments