dotfiles/.config/nvim/lua/pluginconf/treesitter.lua

39 lines
750 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,
},
2021-12-14 14:45:41 +01:00
rainbow = {
enable = true,
extended_mode = true,
colors = {
"#ff00be",
"#ff7e00",
"#64d200",
"#00e6b6",
"#00e1ff",
"#9598ff",
2021-12-14 14:49:36 +01:00
},
},
2021-11-05 17:44:11 +01:00
}