Files
nvim-treesitter/scripts/minimal_init.lua
Christian Clason 2b50ab5ccb test: replace plenary with plentest.nvim
Problem: plenary.nvim as test runner is overkill and no longer
maintained.

Solution: Replace with a minimal fork based on Neovim API and vendored
luassert.
2026-03-17 18:20:03 +01:00

22 lines
558 B
Lua

vim.o.rtp = os.getenv('PLENTEST') .. ',.,' .. vim.o.rtp
vim.o.rtp = vim.fn.stdpath('data') .. '/site,' .. vim.o.rtp
vim.cmd.runtime({ 'plugin/query_predicates.lua', bang = true })
vim.cmd.runtime({ 'plugin/filetypes.lua', bang = true })
vim.filetype.add({
extension = {
conf = 'hocon',
w = 'wing',
},
})
vim.o.swapfile = false
vim.bo.swapfile = false
vim.api.nvim_create_autocmd('FileType', {
callback = function(args)
pcall(vim.treesitter.start)
vim.bo[args.buf].indentexpr = 'v:lua.require"nvim-treesitter".indentexpr()'
end,
})