Neovim for Beginners — Completion Plugins
Have a better completion experience using completion plugins!
We learned the basics of built-in completion in the previous article. By using completion plugins, we can enhance the experience to make Neovim a better code editor.
We are going to
This article is part of the Neovim for Beginners series.
We will focus on the standard completion features, and talk about LSP completion in another article.
The Neovim configuration files can be found in this repository.
coq.nvim
In the lua/plugins.lua
file, add the following lines.
Create a new file lua/config/coq.lua
and add the following lines.
Run the :PackerInstall
command to install the plugins.
:COQdeps
is run after the plugin is installed.- In the
lua/config/coq.lua
file, we start the plugin and configure a few third-party sources likeShell
REPL, Neovim Lua APIs, calculator,cowsay
andfiglet
completions. - There are other completions for
Copilot
,VimTex
,Orgmode.nvim
,vim-dadbod-completion
,nvim-dap
, etc. We don’t configure them here as they require other plugins to be installed.
Make sure you have the cowsay
and figlet
utilities installed. They are used by the configured sources.
Now we can have completions for
- Buffer
- Path
- Snippets
- Treesitter
- Scientific calculator