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
862 B

  1. require('nvim-treesitter.configs').setup {
  2. -- A list of parser names, or "all"
  3. ensure_installed = { 'go', 'dart' },
  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. -- List of parsers to ignore installing (for "all")
  9. ignore_install = { "javascript" },
  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. }