treesitter.lua 599 B

12345678910111213141516
  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. disable = { "c", "rust" }, -- list of language that will be disabled
  6. },
  7. }
  8. require "nvim-treesitter.configs".setup {
  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. }