fix(test): hopefully they work

This commit is contained in:
Barrett Ruth 2026-02-01 23:41:59 -05:00
parent 655e032471
commit 8f5e8e3b17
4 changed files with 37 additions and 20 deletions

View file

@ -1,7 +1,16 @@
vim.cmd([[set runtimepath=$VIMRUNTIME]])
vim.opt.runtimepath:append(vim.fn.getcwd())
local plugin_dir = vim.fn.getcwd()
vim.opt.runtimepath:prepend(plugin_dir)
vim.opt.packpath = {}
local function ensure_parser(lang)
local ok = pcall(vim.treesitter.language.inspect, lang)
if not ok then
error('Treesitter parser for ' .. lang .. ' not available. Neovim 0.10+ bundles lua parser.')
end
end
ensure_parser('lua')
local M = {}
function M.create_buffer(lines)