mirror of
https://github.com/chenasraf/nvim-treesitter.git
synced 2026-05-17 17:38:02 +00:00
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.
22 lines
558 B
Lua
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,
|
|
})
|