fix: nightly(0.11) (#104)

* chore: fix minimal_init, load default plugins correctly

* refactor(ts): make it work on nightly

* chore: get nightly back in ci

* fix(tests): some how i now i need to run vim.treesitter.start() to make it work

* feat(ts): check if parser is found

* chore: use --clean instead --noplugin

* refactor(tests): use auto commands instead of putting it in each test

* chore: show the diff of the doc
This commit is contained in:
Smirnov Oleksandr 2025-03-23 19:06:13 +02:00 committed by GitHub
parent c0b2834652
commit 77754fe362
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 39 additions and 26 deletions

View file

@ -30,9 +30,8 @@ vim.env.XDG_DATA_HOME = root ".tests/data"
vim.env.XDG_STATE_HOME = root ".tests/state"
vim.env.XDG_CACHE_HOME = root ".tests/cache"
vim.cmd [[set runtimepath=$VIMRUNTIME]]
vim.opt.runtimepath:append(root())
vim.opt.packpath = { root ".tests/site" }
vim.opt.packpath:append(root ".tests/site")
vim.notify = vim.print
-- install go treesitter parse
@ -53,3 +52,12 @@ if #vim.api.nvim_list_uis() == 0 then
},
}
end
-- needed for tests, i dont know the reason why, but on start
-- vim is not able to use treesitter for go by default
vim.api.nvim_create_autocmd("FileType", {
pattern = "go",
callback = function(args)
vim.treesitter.start(args.buf, "go")
end,
})