summaryrefslogtreecommitdiff
path: root/nvim/lua/plugins/treesitter.lua
blob: f6127d792d9e88b2d15a2009b164a8bc0dec7cb2 (plain) (blame)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
return {
	"nvim-treesitter/nvim-treesitter",
	build = ":TSUpdate",
	opts = {
		highlight = { enable = true },
		ensure_installed = {
			"c",
			"lua",
			"python",
			"bash",
			"go",
			"html",
			"css",
			"javascript",
			"typescript",
			"git_config",
			"git_rebase",
			"gitattributes",
			"gitcommit",
			"gitignore",
			"gomod",
			"gosum",
			"gotmpl",
			"gowork",
			"hjson",
			"ini",
			"json",
			"json5",
			"jsonnet",
			"latex",
			"make",
			"markdown",
			"markdown_inline",
			"nginx",
			"proto",
			"rust",
			"templ",
			"todotxt",
			"toml",
			"tsx",
			"typescript",
			"vim",
			"vimdoc",
			"xml",
			"yaml",
			"sql",
			"ssh_config",
		},
		ignore_install = { "gdhsader", "phpdoc" },
		indent = { enable = true },
		auto_install = true,
		sync_install = false,
		textobjects = { select = { enable = true, lookahead = true } },
	},
	dependencies = {
		{ "nvim-treesitter/nvim-treesitter-textobjects" },
		{
			"nvim-treesitter/nvim-treesitter-context",
			opts = {
				enable = true,
				mode = "topline",
				line_numbers = true,
			},
		},
	},
}