Neovim LSP, Treesitter, and Plugins/Declare plugins with lazy.nvim

Register plugins and dependencies in Lua.

Section: Plugins and health checks

Declare plugins with lazy.nvim

lua
lua
require("lazy").setup({
  { "nvim-treesitter/nvim-treesitter" },
  { "neovim/nvim-lspconfig" },
  { "nvim-telescope/telescope.nvim", dependencies = { "nvim-lua/plenary.nvim" } },
})
Explanation

This keeps plugin definitions in Lua and supports lazy loading.

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 Plugins and health checks
Bootstrap lazy.nvim
Clone lazy.nvim automatically if missing.
OpenIn sheetluasame section
Run :checkhealth
Inspect provider and plugin setup issues.
OpenIn sheetvimsame section
Go to definition
Jump to the definition of the symbol under cursor.
OpenIn sheetlua1 tag match
Configure nvim-treesitter
Install parsers and enable syntax-aware modules.
OpenIn sheetlua1 tag match
Find references
List all references to a symbol.
OpenIn sheetlua1 tag match
Use Treesitter textobjects
Select functions and classes structurally.
OpenIn sheetlua1 tag match