Add treesitter
This commit is contained in:
12
lua/plugins/treesitter.lua
Normal file
12
lua/plugins/treesitter.lua
Normal 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,
|
||||
}
|
||||
Reference in New Issue
Block a user