init.lua 590 B

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