12 lines
396 B
Lua
12 lines
396 B
Lua
vim.pack.add({
|
|
'https://github.com/nvim-treesitter/nvim-treesitter'
|
|
})
|
|
|
|
require('nvim-treesitter').setup({})
|
|
require('nvim-treesitter').install( {'lua','rust', 'javascript', 'zig', "c","typescript", "cpp","haskell","svelte","python", "vim", "vimdoc", "html" })
|
|
|
|
vim.api.nvim_create_autocmd('FileType', {
|
|
pattern = { 'python', 'lua' },
|
|
callback = function() vim.treesitter.start() end,
|
|
})
|