nvim-treesitter/scripts/minimal_init.lua
Christian Clason 008cc677d2 fix tests
disable Windows tests for now (hang on parser compile)
2023-09-09 16:17:03 +02:00

29 lines
739 B
Lua

vim.opt.runtimepath:append('.')
vim.cmd.runtime({ 'plugin/plenary.vim', bang = true })
vim.cmd.runtime({ 'plugin/nvim-treesitter.lua', bang = true })
vim.cmd.runtime({ 'plugin/query_predicates.lua', bang = true })
vim.cmd.runtime({ 'plugin/filetypes.lua', bang = true })
vim.filetype.add({
extension = {
conf = 'hocon',
hurl = 'hurl',
ncl = 'nickel',
tig = 'tiger',
usd = 'usd',
usda = 'usd',
wgsl = 'wgsl',
w = 'wing',
},
})
vim.o.swapfile = false
vim.bo.swapfile = false
require('nvim-treesitter').setup()
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,
})