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
852 B

2 years ago
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. "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", "perl", "htmldjango" },
  35. additional_vim_regex_highlighting = false,
  36. },
  37. }