Neovim for Beginners — Completion Plugins

Have a better completion experience using completion plugins!

alpha2phi
3 min readJan 21, 2022

--

Neovim for Beginners — 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 like Shell REPL, Neovim Lua APIs, calculator, cowsayand figlet 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

--

--

alpha2phi

Software engineer, Data Science and ML practitioner.