at main 919 B view raw
1return { 2 'nvim-treesitter/nvim-treesitter', 3 --build = ":TSUpdate", 4 config = function() 5 require('nvim-treesitter.configs').setup({ 6 -- A list of parser names, or "all" (the five listed parsers should always be installed) 7 ensure_installed = {"javascript","typescript","python","rust","c", "lua", "vim", "vimdoc", "query","doxygen" }, 8 9 -- Install parsers synchronously (only applied to `ensure_installed`) 10 sync_install = false, 11 12 -- Automatically install missing parsers when entering buffer 13 -- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally 14 auto_install = true, 15 indent = { 16 enable = true 17 }, 18 19 highlight = { 20 enable = true, 21 22 additional_vim_regex_highlighting = false, 23 }, 24 }) 25 end}