init.lua 715 B

123456789101112131415161718192021
  1. require'nvim-treesitter.configs'.setup {
  2. ensure_installed = "all", -- one of "all", "maintained" (parsers with maintainers), or a list of languages
  3. -- TODO seems to be broken
  4. ignore_install = { "haskell" },
  5. highlight = {
  6. enable = true, -- false will disable the whole extension
  7. },
  8. indent = {
  9. enable = true
  10. },
  11. playground = {
  12. enable = true,
  13. disable = {},
  14. updatetime = 25, -- Debounced time for highlighting nodes in the playground from source code
  15. persist_queries = false -- Whether the query persists across vim sessions
  16. },
  17. autotag = {enable = true},
  18. rainbow = {enable = true}
  19. -- refactor = {highlight_definitions = {enable = true}}
  20. }