1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

Update plugin install logic

Only install plugins system-wide if the system is *nix system
This commit is contained in:
jdhao 2019-11-10 11:03:55 +08:00
parent 098ef4c875
commit 960855931b

View File

@ -53,10 +53,13 @@
" If you are using Neovim on Linux system and want to set it up system wide
" for users, set g:nvim_system_wide to 1. If you only want to use it for
" personal need, set this variable to 0.
if has('unix')
let g:nvim_system_wide = 0
else
let g:nvim_system_wide = 0
let g:nvim_system_wide=0
" Do not set this varialbe if the system is not *nix
if g:nvim_system_wide
if !has('unix')
let g:nvim_system_wide = 0
endif
endif
let g:nvim_config_root = expand('<sfile>:p:h')