From 34219051e38f350d5e5ac71c6e8a2651e24c8f32 Mon Sep 17 00:00:00 2001 From: druckdev <63563978+druckdev@users.noreply.github.com> Date: Tue, 3 Nov 2020 00:25:00 +0100 Subject: [PATCH] nvim: Fix coc.nvim and install it automatically Fix bug introduced in c0f7b43 that stopped the sourcing of coc.nvim in neovim. Add command to the dotbot installation config to install coc.nvim automatically after pulling its submodule. --- .config/vim/vimrc | 2 +- meta/install.conf.yaml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.config/vim/vimrc b/.config/vim/vimrc index 03b9279..56503b8 100644 --- a/.config/vim/vimrc +++ b/.config/vim/vimrc @@ -1,7 +1,7 @@ " Plugins ###################################################################### " Auto completion " needs vim >= 8.1.1719 to support features like popup and text property. -if (has('patch-8.1.1719')) +if (has('patch-8.1.1719') || has('nvim')) packadd! coc.nvim source $XDG_CONFIG_HOME/vim/coc.nvim.vim endif diff --git a/meta/install.conf.yaml b/meta/install.conf.yaml index 76107fd..c4dbe7b 100644 --- a/meta/install.conf.yaml +++ b/meta/install.conf.yaml @@ -19,6 +19,11 @@ description: Building stderred stdout: true stderr: true + - + command: cd .config/vim/pack/plugins/opt/coc.nvim && yarn install --frozen-lockfile + description: Installing coc.nvim + stdout: true + stderr: true - link: ~/.xinitrc: path: .xinitrc