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:
Kevin MacMartin 2024-08-15 23:54:01 -04:00
parent 2c60090d33
commit 4b6f74fcd9
2 changed files with 1 additions and 5 deletions

View file

@ -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
View file

@ -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"