mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 03:26:52 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
c13e28f894
commit
2c8f2f2fad
829 changed files with 4905 additions and 8010 deletions
38
plugin/filetypes.lua
Normal file
38
plugin/filetypes.lua
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
local filetypes = {
|
||||
bash = { 'sh', 'PKGBUILD' },
|
||||
bibtex = { 'bib' },
|
||||
c_sharp = { 'cs' },
|
||||
commonlisp = { 'lisp' },
|
||||
devicetree = { 'dts' },
|
||||
diff = { 'gitdiff' },
|
||||
eex = { 'eelixir' },
|
||||
embedded_template = { 'eruby' },
|
||||
git_config = { 'gitconfig' },
|
||||
git_rebase = { 'gitrebase' },
|
||||
glimmer = { 'handlebars', 'html.handlebars' },
|
||||
godot_resource = { 'gdresource' },
|
||||
html = { 'html_tags' },
|
||||
janet_simple = { 'janet' },
|
||||
javascript = { 'javascript', 'javascriptreact', 'ecma', 'jsx' },
|
||||
latex = { 'tex', 'cls', 'sty' },
|
||||
m68k = { 'asm68k' },
|
||||
markdown = { 'pandoc', 'quarto', 'rmd' },
|
||||
ocaml_interface = { 'ocamlinterface' },
|
||||
poe_filter = { 'poefilter' },
|
||||
qmljs = { 'qml' },
|
||||
starlark = { 'bzl' },
|
||||
surface = { 'sface' },
|
||||
t32 = { 'trace32' },
|
||||
tlaplus = { 'tla' },
|
||||
tsx = { 'typescriptreact', 'typescript.tsx' },
|
||||
uxntal = { 'tal' },
|
||||
v = { 'vlang' },
|
||||
verilog = { 'sysverilog' },
|
||||
vhs = { 'tape' },
|
||||
vimdoc = { 'help' },
|
||||
xml = { 'xml', 'xsd', 'xslt', 'svg' },
|
||||
}
|
||||
|
||||
for lang, ft in pairs(filetypes) do
|
||||
vim.treesitter.language.register(lang, ft)
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue