Install parsers and enable syntax-aware modules.
Section: Treesitter
Configure nvim-treesitter
lua
lua
require("nvim-treesitter.configs").setup({
ensure_installed = { "lua", "vim", "javascript", "typescript" },
highlight = { enable = true },
indent = { enable = true },
})Explanation
Treesitter improves syntax-aware highlighting and related editor features.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Treesitter