From 62ea1dc2110ff760af167633c71a6e469011b9c6 Mon Sep 17 00:00:00 2001 From: Chris LaRose Date: Tue, 7 Apr 2020 11:05:54 -0700 Subject: Force reevaluation of autoformat settings at buffer write time --- ftplugin/ruby.vim | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ftplugin/ruby.vim') diff --git a/ftplugin/ruby.vim b/ftplugin/ruby.vim index c5f62fc..f93997d 100644 --- a/ftplugin/ruby.vim +++ b/ftplugin/ruby.vim @@ -4,7 +4,5 @@ let b:prettier_ft_default_args = { augroup Prettier autocmd! - if get(g:, 'prettier#autoformat') - autocmd BufWritePre *.ruby call prettier#Autoformat() - endif + autocmd BufWritePre *.ruby call prettier#Autoformat() augroup end -- cgit v1.3