treesitter-config.lua 855 B

123456789101112131415161718192021222324252627282930313233
  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. }
  7. require "nvim-treesitter.configs".setup {
  8. playground = {
  9. enable = true,
  10. disable = {},
  11. updatetime = 25, -- Debounced time for highlighting nodes in the playground from source code
  12. persist_queries = false -- Whether the query persists across vim sessions
  13. }
  14. }
  15. -- require'nvim-treesitter.configs'.setup {
  16. -- refactor = {
  17. -- highlight_current_scope = { enable = false },
  18. -- },
  19. -- }
  20. -- require'nvim-treesitter.configs'.setup {
  21. -- refactor = {
  22. -- smart_rename = {
  23. -- enable = true,
  24. -- keymaps = {
  25. -- smart_rename = "grr",
  26. -- },
  27. -- },
  28. -- },
  29. -- }