dotfiles/.config/nvim/lua/pluginconf/treesitter.lua
2021-12-14 14:49:36 +01:00

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