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/less.vim | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ftplugin/less.vim') diff --git a/ftplugin/less.vim b/ftplugin/less.vim index e1f18ce..6f64192 100644 --- a/ftplugin/less.vim +++ b/ftplugin/less.vim @@ -4,7 +4,5 @@ let b:prettier_ft_default_args = { augroup Prettier autocmd! - if get(g:, 'prettier#autoformat') - autocmd BufWritePre *.less call prettier#Autoformat() - endif + autocmd BufWritePre *.less call prettier#Autoformat() augroup end -- cgit v1.3