Package Details: neovim-coc 0.0.82-5

Git Clone URL: https://aur.archlinux.org/neovim-coc.git (read-only, click to copy)
Package Base: neovim-coc
Description: Intellisense engine for Vim8 & Neovim, full language server protocol support as VSCode
Upstream URL: https://github.com/neoclide/coc.nvim
Keywords: coc.nvim
Licenses: MIT
Conflicts: neovim-coc
Provides: neovim-coc
Submitter: sainnhe
Maintainer: sainnhe (xiota)
Last Packager: sainnhe
Votes: 8
Popularity: 0.000079
First Submitted: 2020-07-26 04:23 (UTC)
Last Updated: 2023-10-18 04:50 (UTC)

Pinned Comments

sainnhe commented on 2021-02-19 06:18 (UTC) (edited on 2023-01-31 13:09 (UTC) by sainnhe)

Note: Execute :packadd coc.nvim to load coc.nvim.


I created 4 packages for coc.nvim, you can install one of them according to your preference:

  1. neovim-coc: Stable release compiled from the master branch.
  2. neovim-coc-git: Development version compiled from the master branch.
  3. neovim-coc-bin: Stable release based on the release branch, no need to compile.
  4. neovim-coc-bin-git: Development version based on the release branch, no need to compile.

Note that the development of the release branch often lags behind the master branch.


For feature workspace_didChangeWatchedFiles to work, you'll need to install watchman, see this wiki page for more information.


Coc uses either npm or yarn to install extensions, so if you want to install coc extensions using :CocInstall provided by coc, you'll need to install one of them.


The :CocInstall command installs extensions to ~/.config/coc that are only available for current user. If you want to install the extensions to /usr/share that are available for all users, I created some packages for some popular extensions, you can consider to install them from AUR. By this way, you don't need to install npm or yarn.

Due to my lack of personal time, I only created the development versions of these packages with -git postfix.

In addition, I selected some extensions that I think are very basic, you can consider to install them: neovim-coc-extras-meta-git

If you need an extension that is not in AUR currently, leave a comment here and I'll try to create a package for it when I have time.

Latest Comments

1 2 Next › Last »

sainnhe commented on 2023-02-03 01:34 (UTC)

@yan12125: Thanks! Should be fixed now.

yan12125 commented on 2023-02-02 03:55 (UTC)

0.0.82-4 still fails to build in clean chroots. Mind to apply my patch mentioned below?

yan12125 commented on 2022-12-04 10:32 (UTC) (edited on 2022-12-09 19:46 (UTC) by yan12125)

Got a failure with clean chroots (extra-x86_64-build)

:: nodejs-lts-gallium and nodejs are in conflict. Remove nodejs? [y/N]
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: nodejs-lts-gallium and nodejs are in conflict

Moving nodejs to depends= in package() fixes it. Kind of dirty, though.

diff --git a/PKGBUILD b/PKGBUILD
index efc45b1..6c4d83c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,7 +8,7 @@ pkgdesc='Intellisense engine for Vim8 & Neovim, full language server protocol su
 arch=('any')
 url='https://github.com/neoclide/coc.nvim'
 license=('MIT')
-depends=('neovim' 'nodejs')
+depends=('neovim')
 optdepends=('npm: for installing coc extensions'
             'yarn: for installing coc extensions'
             'watchman: for workspace_didChangeWatchedFiles feature')
@@ -24,6 +24,8 @@ build() {
 }

 package() {
+    depends+=('nodejs')
+
     cd "${srcdir}/coc.nvim-${_hash}"
     nvim -es --cmd ":helptags doc" --cmd ":q"
     find autoload build data doc package.json plugin -type f -exec \

sainnhe commented on 2022-12-02 15:08 (UTC)

@yan12125: Should be fixed now. nodejs-lts-gallium is required for building this package, but you can still switch to community/nodejs after successfully building this package.

yan12125 commented on 2022-12-02 12:42 (UTC)

Thanks for the update. I got an error with community/nodejs 19.2.0-1:

error eslint-plugin-jsdoc@39.2.8: The engine "node" is incompatible with this module. Expected version "^14 || ^16 || ^17 || ^18". Got "19.2.0"

Upstream fixes it with https://github.com/neoclide/coc.nvim/commit/79152e0062dc0192c0f64fb2849899547a65bcfe. Could you consider backporting it or use older nodejs in depends?

sainnhe commented on 2022-12-01 15:15 (UTC)

Thanks! I've fixed the commit hash, the version should be 0.0.82 now.

josephblue commented on 2022-12-01 05:28 (UTC)

Although the version of the package is 0.0.82, it is actually still 0.0.81, please fix it.

yan12125 commented on 2022-05-26 03:05 (UTC)

FWIW, here is PKGBUILD for 0.0.81. The trick for webpack.config.js seems not needed anymore.

# Maintainer: Sainnhe Park <sainnhe@gmail.com>
pkgname=neovim-coc
# Coc.nvim creates tags on release branch but the source code is only available on master branch, so I have to use commit hash to specify the version to use.
_hash='21a8e00b3c62faca4fdda5fa16b4f3ed4c03cf09'
pkgver=0.0.81
pkgrel=1
pkgdesc='Intellisense engine for Vim8 & Neovim, full language server protocol support as VSCode'
arch=('any')
url='https://github.com/neoclide/coc.nvim'
license=('MIT')
depends=('neovim' 'nodejs')
optdepends=('npm: for installing coc extensions'
            'yarn: for installing coc extensions'
            'watchman: for workspace_didChangeWatchedFiles feature')
makedepends=('yarn')
provides=('neovim-coc')
conflicts=('neovim-coc')
source=("https://github.com/neoclide/coc.nvim/archive/${_hash}.zip")
sha256sums=('97374516741d70615a0878a7072307fe58e13f4d13333fb67f88a8f706972c76')

build() {
    cd "${srcdir}/coc.nvim-${_hash}"
    yarn install --frozen-lockfile --preferred-cache-folder "${srcdir}/.cache"
}

package() {
    cd "${srcdir}/coc.nvim-${_hash}"
    nvim -es --cmd ":helptags doc" --cmd ":q"
    find autoload build data doc package.json plugin -type f -exec \
        install -Dm 644 '{}' "${pkgdir}/usr/share/nvim/runtime/pack/coc/start/coc.nvim/{}" \;
    install -Dm 644 "${srcdir}/coc.nvim-${_hash}/LICENSE.md" \
        "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
}

sainnhe commented on 2021-06-03 08:17 (UTC)

@AchmadFathoni: Should be fixed now.