summaryrefslogtreecommitdiffstats
path: root/.config/nvim/lua/user/treesitter.lua
blob: b98311f60afd1c23fc522cb883e5ab01ef71e54d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--! tree-sitter configuration


local ts = require 'nvim-treesitter'
local tsc = require 'nvim-treesitter.configs'

tsc.setup{
	ensure_installed = { "rust" },
	auto_install = true,
	highlight = {
		enable = true,
		additional_vim_regex_highlighting = true, ----------------------
	},
	ident = { enable = true },
	rainbow = {
		enable = true,
		extended_mode = true,
		max_file_lines = 1024,
	},
}