this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Remove `enable_installed='maintained'` from treesitter & Add loved parsers list

+45 -8
+45 -8
lua/user/treesitter.lua
··· 1 1 local ok, tsconfigs = pcall(require, "nvim-treesitter.configs") 2 2 if not ok then return end 3 3 4 + local loved_parsers = { 5 + "bash", 6 + "c", "c_sharp", "comment", "cpp", "css", 7 + "dart", "dockerfile", 8 + "fish", 9 + "go", "gomod", 10 + "html", 11 + "javascript", "json", 12 + "lua", 13 + "markdown", 14 + "php", "python", "pug", 15 + "ruby", "rust", 16 + "scss", "solidity", "svelte", "swift", 17 + "toml", "tsx", "typescript", 18 + "vim", "vue", 19 + "yaml", 20 + } 21 + 4 22 tsconfigs.setup { 5 - ensure_installed = "maintained", -- "all" | "maintained" | a list of languages 6 - sync_install = false, -- install languages synchronously (only applied to `ensure_installed`) 7 - ignore_install = { "" }, -- List of parsers to ignore installing 23 + -- A list of parser names, or "all" 24 + ensure_installed = loved_parsers, 25 + 26 + -- Install languages synchronously (only applied to `ensure_installed`) 27 + sync_install = false, 28 + 29 + -- List of parsers to ignore installing (for "all") 30 + ignore_install = false, 31 + -- ignore_install = { "d", "foam", "help", "phpdoc", "slint", "todotxt", "verilog" }, 32 + 33 + highlight = { 34 + -- `false` will disable the whole extension 35 + enable = true, 36 + 37 + -- NOTE: these are the names of the parsers and not the filetype. (for example if you want to 38 + -- disable highlighting for the `tex` filetype, you need to include `latex` in this list as this is 39 + -- the name of the parser) 40 + -- list of language that will be diagnostic_disabled 41 + disable = { "" }, 42 + 43 + -- Setting this to true will run `:h syntax` and tree-sitter at the same time. 44 + -- Set this to `true` if you depend on 'syntax' being enabled (like for indentation). 45 + -- Using this option may slow down your editor, and you may see some duplicate highlights. 46 + -- Instead of true it can also be a list of languages 47 + additional_vim_regex_highlighting = false, 48 + }, 49 + 8 50 autopairs = { 9 51 enable = true, 10 52 }, 11 53 autotag = { 12 54 enable = true, 13 - }, 14 - highlight = { 15 - enable = true, -- false will disable the whole extension 16 - disable = { "" }, -- list of language that will be diagnostic_disabled 17 - additional_vim_regex_highlighting = true, 18 55 }, 19 56 indent = { enable = true, disable = { "yaml" } }, 20 57 context_commentstring = {