Neovim configs for 2023. Hopefully they last.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
842 B

2 years ago
2 years ago
2 years ago
2 years ago
  1. require 'nvim-treesitter.configs'.setup {
  2. -- A list of parser names, or "all" (the four listed parsers should always be installed)
  3. ensure_installed = {
  4. "c",
  5. "cpp",
  6. "rust",
  7. "javascript",
  8. "typescript",
  9. "tsx",
  10. "json",
  11. "html",
  12. "latex",
  13. "bash",
  14. "python",
  15. "go",
  16. "css",
  17. "bibtex",
  18. "make",
  19. "vim",
  20. "lua",
  21. "help",
  22. "markdown",
  23. "gitignore",
  24. "toml",
  25. "yaml",
  26. "nix",
  27. },
  28. -- Install parsers synchronously (only applied to `ensure_installed`)
  29. sync_install = false,
  30. -- Automatically install missing parsers when entering buffer
  31. -- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally
  32. auto_install = true,
  33. highlight = {
  34. enable = true,
  35. disable = { "latex" },
  36. additional_vim_regex_highlighting = false,
  37. },
  38. }