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.

24 lines
791 B

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