aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins/treesitter.lua
blob: 8ec46fcdb255bf41c39991209ba452ee69802770 (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
32
33
return {
	{
		"nvim-treesitter/nvim-treesitter",
		branch = 'master',
		lazy = false,
		build = ":TSUpdate",
		config = function()
			local config = require("nvim-treesitter.configs")
			config.setup({
				ensure_installed = {
					"bash",
					"lua",
					"javascript",
					"c",
					"cpp",
					"json",
					"go",
					"markdown",
					"meson",
					"make",
					"cmake",
					"python",
					"rust",
					"yaml",
					"toml",
					"ron",
				},
				highlight = { enable = true },
				indent = { enable = true },
			})
		end
	}
}