treesitter.lua 583 B

12345678910111213141516171819
  1. require'nvim-treesitter.configs'.setup {
  2. -- A list of parser names, or "all"
  3. ensure_installed = { "c", "lua", "rust", "javascript", "typescript", "python", "bash" },
  4. -- Install parsers synchronously (only applied to `ensure_installed`)
  5. sync_install = false,
  6. -- Automatically install missing parsers when entering buffer
  7. -- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally
  8. auto_install = true,
  9. highlight = {
  10. -- `false` will disable the whole extension
  11. enable = true,
  12. additional_vim_regex_highlighting = false,
  13. },
  14. }