init.lua 840 B

1234567891011121314151617181920
  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 = {enable = true, disable = {"python"}},
  9. playground = {
  10. enable = true,
  11. disable = {},
  12. updatetime = 25, -- Debounced time for highlighting nodes in the playground from source code
  13. persist_queries = false -- Whether the query persists across vim sessions
  14. },
  15. autotag = {enable = true},
  16. rainbow = {enable = true},
  17. context_commentstring = {enable = true, config = {javascriptreact = {style_element = '{/*%s*/}'}}}
  18. -- refactor = {highlight_definitions = {enable = true}}
  19. }