MENU

Fun & Interesting

blink-cmp: Lightning-Fast Autocompletion Built in Rust | Neovim from Scratch Part 6

MrJakob 9,820 2 weeks ago
Video Not Working? Fix It Now

In this final installment of our Neovim configuration series, we explore blink-cmp - the exciting new autocompletion framework that's challenging the established nvim-cmp with its blazingly fast Rust-based fuzzy matcher. With perfect timing, we're celebrating blink-cmp's first stable 1.0 release that launched just days ago! I'll guide you through the complete setup process, starting with basic installation and configuration. We'll integrate blink-cmp with our LSP setup from Part 4 to provide intelligent code completions across all your programming languages. You'll see how this combination delivers suggestions with remarkable speed and accuracy. To demonstrate blink-cmp's extensibility, we'll install a dedicated blink-based completion source for emojis, showing you the pattern for adding specialized completion sources to your environment. We'll also leverage blink's compatibility layer to use an existing nvim-cmp plugin, illustrating how you can maintain access to your favorite completion sources while the blink ecosystem grows. By the end of this video, your Neovim setup will feature a state-of-the-art autocompletion system that rivals or exceeds what you'd find in commercial IDEs, while maintaining the lightweight, customizable nature that makes Neovim special. Though this marks the conclusion of our "Configuration from Scratch" series, we're far from done exploring Neovim's capabilities. Stay tuned for future videos covering advanced topics and specialized workflows! All configuration files demonstrated in this episode are available on GitHub: https://github.com/jakobwesthoff/nvim-from-scratch/tree/session/06 Chapters: 00:00 - Introduction 02:59 - Installing blink-cmp 06:35 - What are Sources? 08:39 - Let's give it a try 09:42 - Enabling LSP based Completions 15:34 - Try out LSP Completion 17:36 - Keymaps in blink-cmp 23:49 - Quick Detour: Appearance Configuration 26:26 - Displaying Documentation 28:35 - Using Signature Help 30:48 - Installing Community Completion Plugins 38:22 - Testing out our new emoji completion 40:09 - Installing a nvim-cmp plugin with the compat layer 42:07 - Pro Tip: Installing multiple Plugins with one Plugin file 42:51 - Back to intalling a nvim-cmp plugin 47:27 - Using our nvim-cmp SQL completion 48:31 - SQL Completion only in SQL files 50:09 - What will the Future hold? 54:51 - Thank You! #neovim #blinkcmp #autocompletion #nvim #rust #coding #programming #lsp #developertools

Comment