Project uses old treesitter setup
The current setup for treesitter in this project is outdated and causes error on running nvim.
The newer way of setting up treesitter has been given in the treesitter README.md.
If it would be ok I could do a quick PR to setup treesitter with the minimal config.
remove the line:
main = 'nvim-treesitter.configs'
did the trick for me.
@Barnoux for me personally I read the readme and this works the best along with lazy:
return {
"nvim-treesitter/nvim-treesitter",
lazy = false,
build = ":TSUpdate",
config = function()
require('nvim-treesitter').install({
'c', 'lua', 'javascript', 'typescript', 'python', 'go', 'java', 'vim', 'vimdoc'
})
vim.api.nvim_create_autocmd('FileType', {
pattern = { 'c', 'lua', 'javascript', 'typescript', 'python', 'go', 'java' },
callback = function() vim.treesitter.start() end,
})
end
}
Ya, i just merged something similar to this - lmk if it doesn't work
it works @tjdevries no funny errors.
yall the laziest devs 🤦🤣 @tjdevries squiggle was fun!