Skip to content
This repository has been archived by the owner on Aug 12, 2022. It is now read-only.

Add support for a custom command instead of :colorscheme #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion autoload/ctrlp/colorscheme.vim
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ endfunction
"
function! ctrlp#colorscheme#accept(mode, str)
call ctrlp#exit()
execute 'colorscheme' a:str
if exists('g:ctrlp_ext_color_command')
execute g:ctrlp_ext_color_command a:str
else
execute 'colorscheme' a:str
endif
endfunction


Expand Down