Member-only story

New Neovim Completion Plugins You Should Try

alpha2phi
4 min readAug 28, 2021

--

New Neovim completion plugins you should try!

New Neovim Completion Plugins

Overview

In the previous articles, I walked through with you the Neovim completion setup using completion-nvim and nvim-compe. The Neovim ecosystem is evolving fast and since then there are new and better completion plugins available for developers.

In this article, let’s explore 2 new completion plugins (coq_nvim and nvim-cmp) that you should try!

coq_nvim

coq_nvim is a highly performing Neovim completion plugin that gives the completion results on every keystroke. It provides real-time performance statistics you can use to measure the performance of the completion sources.

One good thing is that it comes with over 9000 built-in snippets which save me the efforts to configure other snippet plugins.

To install it using packer.nvim,

use {
'ms-jpq/coq_nvim',
branch = 'coq',
event = "VimEnter",
config = 'vim.cmd[[COQnow]]'
}
use {'ms-jpq/coq.artifacts', branch = 'artifacts'}

Note: You may be prompted to run :COQdeps to install the dependencies.

To support LSP code snippets, you need to make some changes to the LSP setup.

local nvim_lsp = require('lspconfig')
local coq = require("coq")

for server, config in pairs(servers) do
nvim_lsp[server].setup(coq.lsp_ensure_capabilities(

--

--

alpha2phi
alpha2phi

Written by alpha2phi

Software engineer, Data Science and ML practitioner.

No responses yet