dotfiles/config/nvim/lua/treesitter.lua

35 lines
814 B
Lua
Raw Normal View History

require'nvim-treesitter.configs'.setup {
ensure_installed = {
"bash", "vim", "regex",
"cpp", "go", "rust",
"diff", "make",
"dockerfile",
"elixir", "erlang",
"godot_resource", "gdscript",
"git_rebase", "gitattributes", "gitcommit", "gitignore",
"html", "scss",
"http", "sql",
"javascript", "jsdoc", "typescript", "vue",
"json", "json5", "jq",
"lua", "php", "phpdoc",
"markdown", "markdown_inline",
"rst", "yaml"
},
highlight = {
enable = true,
}
}
-- Parser config for dfraw language
local parser_config = require'nvim-treesitter.parsers'.get_parser_configs()
parser_config.dfraw = {
install_info = {
url = 'https://code.criminallycute.fi/mirrors/tree-sitter-dfraw',
files = {'src/parser.c'},
branch = 'main',
},
filetype = 'text',
used_by = {'dfraw'},
}