vim.api.nvim_create_autocmd("FileType", { pattern = { "" }, callback = function() vim.treesitter.start() end, }) vim.filetype.add({ extension = { gotmpl = "gotmpl", }, pattern = { [".*/templates/.*%.tpl"] = "helm", [".*/templates/.*%.ya?ml"] = "helm", ["helmfile.*%.ya?ml"] = "helm", }, }) vim.wo[0][0].foldexpr = "v:lua.vim.treesitter.foldexpr()" vim.wo[0][0].foldmethod = "expr" vim.bo.indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()" local M = {} M.install_default_parsers = function() require("nvim-treesitter").install({ "bash", "comment", "csv", "dockerfile", "editorconfig", "elixir", "erlang", "fish", "git_config", "git_rebase", "gitattributes", "gitcommit", "gitignore", "graphql", "gotmpl", "helm", "html", "http", "java", "javascript", "json", "json5", "lua", "luadoc", "make", "markdown_inline", "markdown", "mermaid", "nginx", "pem", "proto", "python", "regex", "requirements", "robots_txt", "rust", "sql", "ssh_config", "terraform", "tmux", "toml", "tsv", "typescript", "vimdoc", "yaml", }) end return M