Added treesitter
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user