mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-11-21 11:22:34 -05:00
Rather than depend on a file that gets updated by the update script for the darkcloudpath, generate it on demand wherever init.vim happens to be
This commit is contained in:
parent
2c60090d33
commit
4b6f74fcd9
2 changed files with 1 additions and 5 deletions
2
init.vim
2
init.vim
|
@ -10,7 +10,7 @@
|
||||||
"============================================================="
|
"============================================================="
|
||||||
|
|
||||||
"load config path
|
"load config path
|
||||||
exec 'source ' . expand('<sfile>:p:h') . '/local/path.vim'
|
let g:darkcloudpath = expand('<sfile>:p:h')
|
||||||
|
|
||||||
"add config directory: (distro-agnostic system-wide)
|
"add config directory: (distro-agnostic system-wide)
|
||||||
let &runtimepath = printf("%s,%s/vim,%s/local", &runtimepath, g:darkcloudpath, g:darkcloudpath)
|
let &runtimepath = printf("%s,%s/vim,%s/local", &runtimepath, g:darkcloudpath, g:darkcloudpath)
|
||||||
|
|
4
update
4
update
|
@ -13,7 +13,6 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
user_vim_config=local/user.vim
|
user_vim_config=local/user.vim
|
||||||
path_config=local/path.vim
|
|
||||||
local_bundle_dir=local/bundle
|
local_bundle_dir=local/bundle
|
||||||
error_log=update-errors.log
|
error_log=update-errors.log
|
||||||
|
|
||||||
|
@ -125,9 +124,6 @@ printf '\n%s\n' "$cbg_black ~~~ DarkCloud Neovim Config Update Tool ~~~ $c_reset
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# create or update path.vim
|
|
||||||
printf '%s\n' "let g:darkcloudpath = \"$(readlink -f "$script_home")\"" > "$path_config"
|
|
||||||
|
|
||||||
# create user.vim if it doesn't exist
|
# create user.vim if it doesn't exist
|
||||||
[[ -e "$user_vim_config" ]] || {
|
[[ -e "$user_vim_config" ]] || {
|
||||||
printf '\n%s' "$cbg_blue >> Creating user config file:$c_reset"
|
printf '\n%s' "$cbg_blue >> Creating user config file:$c_reset"
|
||||||
|
|
Loading…
Reference in a new issue