feat(vim): make theme dynamic from BASE16_THEME use in the shell
Now when loading vim the them from the shell is getting used rather than only every using tomorrow night. When I use tomorrow it will be inherited in vim.
This commit is contained in:
parent
ce7b395e90
commit
243a0aa497
2 changed files with 6 additions and 5 deletions
|
|
@ -1,7 +1,8 @@
|
|||
" Set color theme
|
||||
let base16colorspace=256
|
||||
let g:github_dark_sidebar = 0
|
||||
colorscheme base16-tomorrow-night
|
||||
if exists('$BASE16_THEME') && (!exists('g:colors_name') || g:colors_name != 'base16-$BASE16_THEME')
|
||||
let base16colorspace=256
|
||||
colorscheme base16-$BASE16_THEME
|
||||
endif
|
||||
|
||||
" Set tailing white space to errors
|
||||
match ErrorMsg '\s\+$'
|
||||
|
|
|
|||
|
|
@ -48,8 +48,8 @@ printf '\033[5 q'
|
|||
# emacs or vim
|
||||
#
|
||||
if [[ -z "$VIM" ]] && [[ -z "$INSIDE_EMACS" ]] && [[ -z "$SSH_TTY" ]] ; then
|
||||
BASE16_SHELL="$HOME/.config/base16-shell/"
|
||||
[ -s "$BASE16_SHELL/profile_helper.sh" ] && source "$BASE16_SHELL/profile_helper.sh"
|
||||
BASE16_CONFIG_PATH="$HOME/.config/base16-shell/"
|
||||
[ -s "$BASE16_CONFIG_PATH/profile_helper.sh" ] && source "$BASE16_CONFIG_PATH/profile_helper.sh"
|
||||
fi
|
||||
|
||||
#
|
||||
|
|
|
|||
Loading…
Reference in a new issue