Lesson 8 of 9 · 27m
Plugins and LSP Without the Bloat
Choosing a small plugin set, pinning it, configuring language servers, understanding completion, and keeping ownership of your editor.
Plugin ecosystems fail in two directions. Minimalists reinstall wheels and blame Vim for missing basic tooling. Maximalists install eighty plugins and cannot tell which one moved their cursor. The professional middle ground is a small set of tools whose jobs you can explain.
Install for jobs, not screenshots
plugin manager lazy.nvim
file/search telescope.nvim or fzf-lua
syntax/structure nvim-treesitter
language servers nvim-lspconfig plus mason or system packages
completion nvim-cmp or blink.cmp
git signs gitsigns.nvimNotice what is absent: four statuslines, two fuzzy finders, three completion engines, and AI tooling wired into every mode. Every plugin is a liability. If you cannot say what keymap or command it owns, remove it.
Pin and inspect the dependency graph
require("lazy").setup({
{ "nvim-treesitter/nvim-treesitter", build = ":TSUpdate" },
{ "nvim-telescope/telescope.nvim", dependencies = { "nvim-lua/plenary.nvim" } },
{ "neovim/nvim-lspconfig" },
})Commit lazy-lock.json; it records exact plugin revisions. When an update breaks your editor, roll back to a working revision instead of guessing which of thirty updates did it.
LSP is a client-server system
Neovim is the client. A language server — typescript-language-server, rust-analyzer, gopls, lua_ls — is a separate process that parses your project. Current Neovim configuration looks like:
vim.lsp.config("lua_ls", {
settings = { Lua = { diagnostics = { globals = { "vim" } } } },
})
vim.lsp.enable("lua_ls")When LSP fails, debug it like a service: is the binary installed, does it start in the project root, and what does :LspLog say? The root matters — a server started in the wrong directory misses configuration files, imports, and generated types.
Useful operations include rename, code actions, references, definition jumps, and diagnostic floats. Exact default mappings vary by Neovim version, so inspect :map and your distribution rather than trusting a blog post from three releases ago.
Completion is not LSP
Completion plugins combine LSP symbols, buffer words, paths, and snippets. LSP provides semantic candidates; the completion UI decides how they appear and confirm. If completion inserts garbage, determine whether it came from the server, a snippet expansion, or buffer words before changing random settings.
Treesitter likewise is more than highlighting: it builds a parse tree that text objects, indentation, folding, and refactoring plugins can consume. With a text-objects plugin, vif or vaf can mean inside/around a function in supported languages instead of a regex pretending to understand code.
Field notes
- Update plugins deliberately, read breaking-change notes, and test on a quiet day rather than before a release.
- Use system packages or mason-managed binaries consistently; mixed installations produce version mismatches that look like editor bugs.
- LazyVim and kickstart.nvim are useful reference implementations, but copy ideas selectively instead of inheriting a configuration you cannot debug.
- If a plugin rewrites core behavior, document the override in your config; future-you will otherwise blame Neovim for a keybinding plugin.
Was this lesson helpful?