From cdf15c260bf90d5052ec02254c091b966dceb9d9 Mon Sep 17 00:00:00 2001 From: mitermayer Date: Sat, 15 Feb 2020 08:40:18 +0000 Subject: Adding support for prettier ruby plugin - Update docker container image to be able to run the prettier ruby plugin tests --- ftplugin/ruby.vim | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 ftplugin/ruby.vim (limited to 'ftplugin/ruby.vim') diff --git a/ftplugin/ruby.vim b/ftplugin/ruby.vim new file mode 100644 index 0000000..c5f62fc --- /dev/null +++ b/ftplugin/ruby.vim @@ -0,0 +1,10 @@ +let b:prettier_ft_default_args = { + \ 'parser': 'ruby', + \ } + +augroup Prettier + autocmd! + if get(g:, 'prettier#autoformat') + autocmd BufWritePre *.ruby call prettier#Autoformat() + endif +augroup end -- cgit v1.3