playground.lua 727 B

12345678910111213141516171819202122232425
  1. require "nvim-treesitter.configs".setup({
  2. playground = {
  3. enable = true,
  4. disable = {},
  5. updatetime = 25, -- Debounced time for highlighting nodes in the playground from source code
  6. persist_queries = false, -- Whether the query persists across vim sessions
  7. keybindings = {
  8. toggle_query_editor = 'o',
  9. toggle_hl_groups = 'i',
  10. toggle_injected_languages = 't',
  11. toggle_anonymous_nodes = 'a',
  12. toggle_language_display = 'I',
  13. focus_language = 'f',
  14. unfocus_language = 'F',
  15. update = 'R',
  16. goto_node = '<cr>',
  17. show_help = '?',
  18. },
  19. },
  20. query_linter = {
  21. enable = true,
  22. use_virtual_text = true,
  23. lint_events = {"BufWrite", "CursorHold"},
  24. },
  25. })