treesitter.lua (598B)
1 return { 2 "nvim-treesitter/nvim-treesitter", 3 lazy = false, 4 build = ":TSUpdate", 5 config = function () 6 local treesitter = require("nvim-treesitter") 7 treesitter.setup() 8 9 treesitter.install = { "asm", "bash", "c", "css", "cpp", "html", "json", "lua", "markdown", "markdown_inline", "latex" }, 10 11 vim.api.nvim_create_autocmd('FileType', { 12 pattern = { "asm", "bash", "c", "css", "cpp", "html", "json", "lua", "markdown", "markdown_inline", "tex" }, 13 14 callback = function() 15 vim.treesitter.start() 16 vim.bo.indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()" 17 end, 18 }) 19 end 20 }