aboutsummaryrefslogtreecommitdiff
path: root/nvim/lua/plugins/treesitter.lua
blob: b7fe8fb50ddc75f067bd89c3b84ae3f1f08975d2 (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
31
return {
	{
		"nvim-treesitter/nvim-treesitter",
		build = ":TSUpdate",
		event = { "BufReadPost", "BufNewFile" },
		lazy = false,

		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,
	},
}