ci: format

This commit is contained in:
Barrett Ruth 2026-03-01 17:22:59 -05:00
commit e49a664d48
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
30 changed files with 1612 additions and 0 deletions

27
spec/helpers.lua Normal file
View file

@ -0,0 +1,27 @@
local plugin_dir = vim.fn.getcwd()
vim.opt.runtimepath:prepend(plugin_dir)
vim.opt.packpath = {}
local M = {}
function M.create_buffer(lines, ft)
local bufnr = vim.api.nvim_create_buf(false, true)
vim.api.nvim_buf_set_lines(bufnr, 0, -1, false, lines or {})
if ft then
vim.bo[bufnr].filetype = ft
end
return bufnr
end
function M.delete_buffer(bufnr)
if bufnr and vim.api.nvim_buf_is_valid(bufnr) then
vim.api.nvim_buf_delete(bufnr, { force = true })
end
end
function M.reset_config()
vim.g.render = nil
require('render')._test.reset()
end
return M