at dominant 1.2 kB view raw
1return { 2 'nvim-treesitter/nvim-treesitter', 3 build = ":TSUpdate", 4 config = function() 5 require'nvim-treesitter.configs'.setup { 6 indent = { enable = true }, 7 -- A list of parser names, or "all" 8 ensure_installed = { "vimdoc", "javascript", "typescript", "c", "lua", "rust" }, 9 10 -- Install parsers synchronously (only applied to `ensure_installed`) 11 sync_install = false, 12 13 -- Automatically install missing parsers when entering buffer 14 -- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally 15 auto_install = true, 16 17 highlight = { 18 --- `false` will disable the whole extension 19 enable = true, 20 21 -- Setting this to true will run `:h syntax` and tree-sitter at the same time. 22 -- Set this to `true` if you depend on 'syntax' being enabled (like for indentation). 23 -- Using this option may slow down your editor, and you may see some duplicate highlights. 24 -- Instead of true it can also be a list of languages 25 additional_vim_regex_highlighting = { "markdown" } 26 }, 27 } 28 end 29}