dotfiles/mzte-nv/conf/lua/pluginconf/treesitter.lua

42 lines
786 B
Lua
Raw Normal View History

2021-11-05 17:44:11 +01:00
local configs = require "nvim-treesitter.configs"
local parsers = require "nvim-treesitter.parsers"
2021-05-11 15:43:29 +02:00
local parser_config = parsers.get_parser_configs()
parser_config.haxe = {
2021-11-05 17:44:11 +01:00
install_info = {
url = "https://github.com/vantreeseba/tree-sitter-haxe",
files = { "src/parser.c" },
branch = "main",
},
filetype = "haxe",
2021-05-11 15:43:29 +02:00
}
2021-11-05 17:44:11 +01:00
configs.setup {
2022-05-16 15:04:24 +02:00
ensure_installed = { "haxe" },
2021-11-05 17:44:11 +01:00
highlight = {
enable = true,
},
2021-12-14 14:45:41 +01:00
2022-01-22 16:38:51 +01:00
autotag = {
enable = true,
},
2023-01-24 19:09:09 +01:00
indent = {
enable = true,
},
2021-12-14 14:45:41 +01:00
rainbow = {
enable = true,
2023-01-21 14:42:29 +01:00
hlgroups = {
"TSRainbow1",
"TSRainbow2",
"TSRainbow3",
"TSRainbow4",
"TSRainbow5",
"TSRainbow6",
2021-12-14 14:49:36 +01:00
},
},
2021-11-05 17:44:11 +01:00
}