local M = {} -- https://github.com/nvim-treesitter/nvim-treesitter/blob/main/SUPPORTED_LANGUAGES.md M.languages = { "bash", "c", "cpp", "html", "javascript", -- "jinja", -- "jinja_inline", "jq", "json", -- deckt auch den Dateityp jsonc ab (siehe lua/config/filetypes.lua) "lua", "make", "markdown", "markdown_inline", "po", "powershell", "prisma", "python", "typescript", "vim", "vimdoc", "xml", "yaml", "zsh", } -- Filetypes ohne gleichnamigen Parser, die Treesitter trotzdem nutzen sollen -- (siehe config.filetypes: jsonc laeuft ueber den json-Parser). M.extra_filetypes = { "jsonc", } -- Filetypes, fuer die Treesitter-Features aktiviert werden. function M.filetypes() local filetypes = {} for _, language in ipairs(M.languages) do table.insert(filetypes, language) end for _, filetype in ipairs(M.extra_filetypes) do table.insert(filetypes, filetype) end return filetypes end return M