Add treesitter

This commit is contained in:
2026-01-14 21:01:46 +01:00
parent 6ce99540d1
commit 3edbe2c7f3
5 changed files with 38 additions and 10 deletions

View File

@ -0,0 +1,12 @@
return {
"nvim-treesitter/nvim-treesitter",
lazy = false,
run = ":TSUpdate",
config = function()
require'nvim-treesitter'.install { 'lua', 'c', 'cpp', 'rust' }
vim.api.nvim_create_autocmd('FileType', {
pattern = { '<filetype>' },
callback = function() vim.treesitter.start() end,
})
end,
}