mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
refactor theme loading
This commit is contained in:
@@ -193,3 +193,14 @@ function! utils#MultiEdit(patterns) abort
|
||||
endfor
|
||||
endfor
|
||||
endfunction
|
||||
|
||||
function! utils#add_pack(name) abort
|
||||
let l:success = v:true
|
||||
try
|
||||
execute printf("packadd! %s", a:name)
|
||||
catch /^Vim\%((\a\+)\)\=:E919/
|
||||
let l:success = v:false
|
||||
endtry
|
||||
|
||||
return l:success
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user