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.

40 lines
831 B

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. "json",
  10. "html",
  11. "latex",
  12. "bash",
  13. "python",
  14. "go",
  15. "css",
  16. "bibtex",
  17. "make",
  18. "vim",
  19. "lua",
  20. "help",
  21. "markdown",
  22. "gitignore",
  23. "toml",
  24. "yaml",
  25. "nix",
  26. },
  27. -- Install parsers synchronously (only applied to `ensure_installed`)
  28. sync_install = false,
  29. -- Automatically install missing parsers when entering buffer
  30. -- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally
  31. auto_install = true,
  32. highlight = {
  33. enable = true,
  34. disable = { "latex" },
  35. additional_vim_regex_highlighting = false,
  36. },
  37. }