Autocompletion for Neovim — nvim-cmp, LuaSnip & Friendly Snippets | Episode 11

30views
1likes
0
14:18
T
Taught by Celeste AI - AI Coding Coach
View on YouTube
Description
Add intelligent autocompletion to your Neovim config! In Episode 11, we set up nvim-cmp as the completion engine with 4 sources (LSP, buffer, path, snippets), configure Tab/Shift-Tab super-tab navigation, add LuaSnip for snippet expansion with placeholder jumping, and load hundreds of language templates via friendly-snippets — all without leaving the terminal. Every keystroke is shown on screen with 3-second pauses so you can follow along at your own pace. What You'll Learn: - hrsh7th/nvim-cmp: the completion engine for Neovim - hrsh7th/cmp-nvim-lsp: LSP completions (functions, types, auto-imports) - hrsh7th/cmp-buffer: word completions from the current file - hrsh7th/cmp-path: file path completions - L3MON4D3/LuaSnip: snippet engine for Neovim - saadparwaiz1/cmp_luasnip: bridges LuaSnip and nvim-cmp - rafamadriz/friendly-snippets: hundreds of VS Code-format language templates - Tab/Shift-Tab super-tab: navigate popup, expand snippets, jump placeholders - Enter to confirm selection, Ctrl+Space to trigger manually - Ctrl+e to dismiss, Ctrl+b/Ctrl+f to scroll documentation - cmp.config.sources: two-group priority (LSP+snippets first, buffer+path fallback) - cmp_nvim_lsp.default_capabilities: enhanced LSP completions Timestamps: 0:00 - Introduction 0:15 - What You'll Learn (Preview) 0:45 - Completion Setup (cmp.lua + Update lsp.lua) 5:52 - Completion Demo (All 4 Sources + Keymaps) 8:15 - Snippets (Expansion + Placeholder Jumping) 12:18 - Recap: 5 Key Takeaways 13:18 - End Screen This is Episode 11 of the Neovim Tutorial Series. Episode 10 covers LSP (mason, lspconfig, pyright, diagnostics). Next episode introduces file explorer and git integration with neo-tree and gitsigns. Taught by CelesteAI. Like & subscribe for more Neovim tutorials! #neovim #vim #terminal #tutorial #programming #autocompletion #nvimcmp #luasnip #snippets #completion #neovimconfig #dotfiles #linux #macos #developer #ide #python #cmp #friendlysnippets #tabcompletion --- Tags: neovim, neovim tutorial, neovim autocompletion, nvim-cmp, nvim cmp, cmp setup, completion engine, LuaSnip, luasnip snippets, friendly-snippets, cmp-nvim-lsp, cmp-buffer, cmp-path, tab completion, snippet expansion, placeholder jumping, super tab, neovim plugins, neovim config, neovim episode 11, learn neovim, learn vim, terminal editor, programming tutorial, developer tools, python, ide, screenkey

Tags

neovimneovim tutorialneovim autocompletionnvim-cmpnvim cmpcmp setupcompletion engineLuaSnipluasnip snippetsfriendly-snippetscmp-nvim-lspcmp-buffercmp-pathtab completionsnippet expansion
Back to tutorials

Duration

14:18

Published

March 2, 2026

Added to Codegiz

March 15, 2026

Open in YouTube