mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 03:26:52 -04:00
fix tests
disable Windows tests for now (hang on parser compile)
This commit is contained in:
parent
7681249bbd
commit
008cc677d2
12 changed files with 73 additions and 65 deletions
|
|
@ -2,11 +2,11 @@ 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',
|
||||
cmm = 't32',
|
||||
hurl = 'hurl',
|
||||
ncl = 'nickel',
|
||||
tig = 'tiger',
|
||||
|
|
@ -24,6 +24,6 @@ require('nvim-treesitter').setup()
|
|||
vim.api.nvim_create_autocmd('FileType', {
|
||||
callback = function(args)
|
||||
pcall(vim.treesitter.start)
|
||||
vim.bo[args.buffer].indentexpr = 'v:lua.require"nvim-treesitter".indentexpr()'
|
||||
vim.bo[args.buf].indentexpr = 'v:lua.require"nvim-treesitter".indentexpr()'
|
||||
end,
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue