2022-02-03 12:34:50 +01:00
|
|
|
-- local parser_configs = require("nvim-treesitter.parsers").get_parser_configs()
|
2021-11-22 18:45:07 +01:00
|
|
|
|
2022-02-03 12:34:50 +01:00
|
|
|
-- parser_configs.http = {
|
|
|
|
-- install_info = {
|
|
|
|
-- url = "https://github.com/NTBBloodbath/tree-sitter-http",
|
|
|
|
-- files = {"src/parser.c"},
|
|
|
|
-- branch = "main"
|
|
|
|
-- }
|
|
|
|
-- }
|
2021-11-22 18:45:07 +01:00
|
|
|
|
2022-02-03 12:34:50 +01:00
|
|
|
-- parser_configs.glsl = {
|
|
|
|
-- filetype = "vert",
|
|
|
|
-- filetypes = {"vert", "frag"}
|
|
|
|
-- }
|
2021-11-22 18:45:07 +01:00
|
|
|
|
2022-01-26 20:42:58 +01:00
|
|
|
require "nvim-treesitter.configs".setup {
|
|
|
|
indent = {
|
|
|
|
enable = true
|
2021-11-22 18:45:07 +01:00
|
|
|
},
|
2022-01-26 20:42:58 +01:00
|
|
|
ensure_installed = {
|
|
|
|
"bash",
|
|
|
|
"yaml",
|
|
|
|
"http",
|
|
|
|
"svelte",
|
|
|
|
"css",
|
|
|
|
"svelte",
|
|
|
|
"typescript",
|
|
|
|
"javascript",
|
|
|
|
"go",
|
|
|
|
"lua",
|
|
|
|
"yaml",
|
|
|
|
"prisma"
|
|
|
|
},
|
|
|
|
highlight = {enable = true}
|
|
|
|
}
|