dotfiles/mzte-nv/conf/lua/pluginconf/treesitter.lua
2023-01-24 19:09:09 +01:00

41 lines
786 B
Lua

local configs = require "nvim-treesitter.configs"
local parsers = require "nvim-treesitter.parsers"
local parser_config = parsers.get_parser_configs()
parser_config.haxe = {
install_info = {
url = "https://github.com/vantreeseba/tree-sitter-haxe",
files = { "src/parser.c" },
branch = "main",
},
filetype = "haxe",
}
configs.setup {
ensure_installed = { "haxe" },
highlight = {
enable = true,
},
autotag = {
enable = true,
},
indent = {
enable = true,
},
rainbow = {
enable = true,
hlgroups = {
"TSRainbow1",
"TSRainbow2",
"TSRainbow3",
"TSRainbow4",
"TSRainbow5",
"TSRainbow6",
},
},
}