install.fairie/dotfiles/.vim/plugged/vim-prettier/autoload/prettier/resolver/preset.vim

9 lines
291 B
VimL
Raw Normal View History

" Build config using predefined preset
function! prettier#resolver#preset#resolve(fileTypeConfigOverwrites) abort
if ( g:prettier#preset#config ==# 'fb' )
return extend(prettier#presets#fb#config(), a:fileTypeConfigOverwrites)
endif
return a:fileTypeConfigOverwrites
endfunction