Make vimrc cleaner

This commit is contained in:
Anthony Rose 2021-03-22 18:57:40 +00:00
parent 83041c1753
commit 6dcddbb0dc

13
vimrc
View file

@ -188,14 +188,15 @@ else
endif endif
if !empty($VIMCOC) && has("patch-8.1.1719") && (executable("nodejs") || executable("node")) 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") if has("win32")
let g:coc_data_home = resolve("~/vimfiles/coc") let g:coc_data_home = resolve("~/vimfiles/coc")
else endif
if has("nvim") " NVim on Linux.
let g:coc_data_home = resolve("~/.config/nvim/coc") if has("nvim")
else let g:coc_data_home = resolve("~/.config/nvim/coc")
let g:coc_data_home = resolve("~/.vim/coc")
endif
endif endif
packadd coc.nvim packadd coc.nvim