19 lines
493 B
Lua
19 lines
493 B
Lua
vim.pack.add({
|
|
'https://github.com/nvim-treesitter/nvim-treesitter'
|
|
})
|
|
|
|
require('nvim-treesitter').setup({
|
|
highlight = {
|
|
enable = true
|
|
},
|
|
})
|
|
require('nvim-treesitter').install({ 'lua', 'rust', 'javascript', 'zig', "c", "typescript", "cpp", "haskell", "svelte",
|
|
"python", "vim", "vimdoc", "html", "wgsl" })
|
|
|
|
vim.api.nvim_create_autocmd('FileType', {
|
|
callback = function(args)
|
|
pcall(vim.treesitter.start, args.buf)
|
|
end,
|
|
})
|
|
vim.filetype.add({ extension = { wgsl = "wgsl" } })
|