From 6dcddbb0dc808007e97dc0a6e70396fe666e734a Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Mon, 22 Mar 2021 18:57:40 +0000 Subject: [PATCH] Make vimrc cleaner --- vimrc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/vimrc b/vimrc index a945edf..894c848 100644 --- a/vimrc +++ b/vimrc @@ -188,14 +188,15 @@ else endif if !empty($VIMCOC) && has("patch-8.1.1719") && (executable("nodejs") || executable("node")) + " Vim on Linux. + let g:coc_data_home = resolve("~/.vim/coc") + " Vim on Windows. if has("win32") let g:coc_data_home = resolve("~/vimfiles/coc") - else - if has("nvim") - let g:coc_data_home = resolve("~/.config/nvim/coc") - else - let g:coc_data_home = resolve("~/.vim/coc") - endif + endif + " NVim on Linux. + if has("nvim") + let g:coc_data_home = resolve("~/.config/nvim/coc") endif packadd coc.nvim