···11local ok, tsconfigs = pcall(require, "nvim-treesitter.configs")
22if not ok then return end
3344+local loved_parsers = {
55+ "bash",
66+ "c", "c_sharp", "comment", "cpp", "css",
77+ "dart", "dockerfile",
88+ "fish",
99+ "go", "gomod",
1010+ "html",
1111+ "javascript", "json",
1212+ "lua",
1313+ "markdown",
1414+ "php", "python", "pug",
1515+ "ruby", "rust",
1616+ "scss", "solidity", "svelte", "swift",
1717+ "toml", "tsx", "typescript",
1818+ "vim", "vue",
1919+ "yaml",
2020+}
2121+422tsconfigs.setup {
55- ensure_installed = "maintained", -- "all" | "maintained" | a list of languages
66- sync_install = false, -- install languages synchronously (only applied to `ensure_installed`)
77- ignore_install = { "" }, -- List of parsers to ignore installing
2323+ -- A list of parser names, or "all"
2424+ ensure_installed = loved_parsers,
2525+2626+ -- Install languages synchronously (only applied to `ensure_installed`)
2727+ sync_install = false,
2828+2929+ -- List of parsers to ignore installing (for "all")
3030+ ignore_install = false,
3131+ -- ignore_install = { "d", "foam", "help", "phpdoc", "slint", "todotxt", "verilog" },
3232+3333+ highlight = {
3434+ -- `false` will disable the whole extension
3535+ enable = true,
3636+3737+ -- NOTE: these are the names of the parsers and not the filetype. (for example if you want to
3838+ -- disable highlighting for the `tex` filetype, you need to include `latex` in this list as this is
3939+ -- the name of the parser)
4040+ -- list of language that will be diagnostic_disabled
4141+ disable = { "" },
4242+4343+ -- Setting this to true will run `:h syntax` and tree-sitter at the same time.
4444+ -- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
4545+ -- Using this option may slow down your editor, and you may see some duplicate highlights.
4646+ -- Instead of true it can also be a list of languages
4747+ additional_vim_regex_highlighting = false,
4848+ },
4949+850 autopairs = {
951 enable = true,
1052 },
1153 autotag = {
1254 enable = true,
1313- },
1414- highlight = {
1515- enable = true, -- false will disable the whole extension
1616- disable = { "" }, -- list of language that will be diagnostic_disabled
1717- additional_vim_regex_highlighting = true,
1855 },
1956 indent = { enable = true, disable = { "yaml" } },
2057 context_commentstring = {