aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2019-11-10 11:03:55 +0800
committerjdhao <jdhao@hotmail.com>2019-11-10 11:03:55 +0800
commit960855931b522655fcabea9616f8edf5b6bf56d8 (patch)
tree1fc4e19dc391142b904bb21013dea2c3500c7285
parent098ef4c875e9c7a20d0267bc8b0cd17e80c0c8bf (diff)
Update plugin install logic
Only install plugins system-wide if the system is *nix system
-rw-r--r--init.vim11
1 files changed, 7 insertions, 4 deletions
diff --git a/init.vim b/init.vim
index 55285bc..2d83e74 100644
--- a/init.vim
+++ b/init.vim
@@ -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')