aboutsummaryrefslogtreecommitdiff
path: root/nvim/lua/plugins/treesitter.lua
blob: f3f4dd09444ba2725f71222d938e3fdf5075c6ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
return {
	{
		"nvim-treesitter/nvim-treesitter",
		build = ":TSUpdate",
		event = { "BufReadPost", "BufNewFile" },

		config = function()
			require("nvim-treesitter.configs").setup({
				ensure_installed = {
					--"c",
					"bash",
					"markdown",
					"markdown_inline",
					"bibtex",
					"latex",
					"vimdoc",
				},
				--ignore_installed = { "c" },
				sync_install = false,
				auto_install = true,

				highlight = {
					enable = true,
					additional_vim_regex_highlighting = false,
					disable = { "c", "cpp", "h" }
				}
			})
		end,
	},
}