Added treesitter

This commit is contained in:
wilmc
2026-06-24 18:54:31 +02:00
parent f45504df54
commit a73f64de81
4 changed files with 31 additions and 4 deletions
+18
View File
@@ -0,0 +1,18 @@
-- Treesitter
vim.pack.add({ 'https://github.com/nvim-treesitter/nvim-treesitter' })
local ts = require('nvim-treesitter')
ts.setup({})
ts.install {
'lua',
'cpp',
'c'
}
vim.api.nvim_create_autocmd('FileType', {
pattern = { 'cpp', 'c', 'lua' },
callback = function()
vim.treesitter.start()
end
})