You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
829 B

  1. require('nvim-treesitter.configs').setup {
  2. -- A list of parser names, or "all"
  3. ensure_installed = { 'go', 'dart', 'php', 'javascript' },
  4. -- Install parsers synchronously (only applied to `ensure_installed`)
  5. sync_install = false,
  6. -- Automatically install missing parsers when entering buffer
  7. auto_install = true,
  8. indent = {
  9. enable = true,
  10. },
  11. highlight = {
  12. -- `false` will disable the whole extension
  13. enable = true,
  14. -- Setting this to true will run `:h syntax` and tree-sitter at the same time.
  15. -- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
  16. -- Using this option may slow down your editor, and you may see some duplicate highlights.
  17. -- Instead of true it can also be a list of languages
  18. additional_vim_regex_highlighting = false,
  19. },
  20. }