2021-10-27 20:37:42 +02:00
|
|
|
local parser_configs = require("nvim-treesitter.parsers").get_parser_configs()
|
2021-11-17 14:04:03 +01:00
|
|
|
parser_configs.http = {
|
|
|
|
install_info = {
|
|
|
|
url = "https://github.com/NTBBloodbath/tree-sitter-http",
|
|
|
|
files = {"src/parser.c"},
|
|
|
|
branch = "main"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
require "nvim-treesitter.configs".setup {
|
|
|
|
ensure_installed = {
|
|
|
|
"bash",
|
|
|
|
"yaml",
|
|
|
|
"http",
|
|
|
|
"svelte",
|
|
|
|
"css",
|
|
|
|
"svelte",
|
|
|
|
"typescript",
|
|
|
|
"javascript",
|
|
|
|
"go",
|
|
|
|
"lua",
|
|
|
|
"yaml"
|
|
|
|
},
|
|
|
|
highlight = {enable = true}
|
|
|
|
}
|