dotfiles/.config/nvim/lua/pluginconf/treesitter.lua
2022-05-17 17:54:40 +02:00

38 lines
750 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,
},
rainbow = {
enable = true,
extended_mode = true,
colors = {
"#ff00be",
"#ff7e00",
"#64d200",
"#00e6b6",
"#00e1ff",
"#9598ff",
},
},
}