Make vimrc cleaner
This commit is contained in:
parent
83041c1753
commit
6dcddbb0dc
1 changed files with 7 additions and 6 deletions
9
vimrc
9
vimrc
|
@ -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
|
||||||
|
" NVim on Linux.
|
||||||
if has("nvim")
|
if has("nvim")
|
||||||
let g:coc_data_home = resolve("~/.config/nvim/coc")
|
let g:coc_data_home = resolve("~/.config/nvim/coc")
|
||||||
else
|
|
||||||
let g:coc_data_home = resolve("~/.vim/coc")
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
packadd coc.nvim
|
packadd coc.nvim
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue