aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--autoload/utils.vim6
-rw-r--r--core/themes.vim6
2 files changed, 6 insertions, 6 deletions
diff --git a/autoload/utils.vim b/autoload/utils.vim
index d9a8a32..8f528fb 100644
--- a/autoload/utils.vim
+++ b/autoload/utils.vim
@@ -193,12 +193,12 @@ function! utils#MultiEdit(patterns) abort
endfunction
function! utils#add_pack(name) abort
- let l:success = v:true
+ let l:status = v:true
try
execute printf("packadd! %s", a:name)
catch /^Vim\%((\a\+)\)\=:E919/
- let l:success = v:false
+ let l:status = v:false
endtry
- return l:success
+ return l:status
endfunction
diff --git a/core/themes.vim b/core/themes.vim
index ced7384..87e29cc 100644
--- a/core/themes.vim
+++ b/core/themes.vim
@@ -61,7 +61,7 @@ let s:theme2dir = {
\ 'nord': 'nord.nvim',
\ 'doom_one': 'doom-one.nvim',
\ 'everforest' :'everforest',
- \ 'nightfox': 'nightfox.nvim'
+ \ 'nightfox': 'nightfox.nvim',
\ }
let s:theme = utils#RandElement(keys(s:theme2dir))
@@ -73,8 +73,8 @@ if !has_key(s:theme_setup_dict, s:theme)
finish
endif
-let s:res = utils#add_pack(s:theme2dir[s:theme])
-if !s:res
+let s:status = utils#add_pack(s:theme2dir[s:theme])
+if !s:status
echomsg printf("Theme %s not installed. Run PackerSync to install.", s:theme)
finish
endif