From d680a583943337a74325e09a853febd7ef4ac5b7 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Mon, 4 Apr 2022 13:19:08 +0300 Subject: [PATCH] fix(prog/nvim): format on save --- programs/nvim/init.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/programs/nvim/init.vim b/programs/nvim/init.vim index 406577e..e5a056b 100644 --- a/programs/nvim/init.vim +++ b/programs/nvim/init.vim @@ -69,7 +69,8 @@ let g:sql_type_default = 'pgsql' let g:neoformat_try_node_exe = 1 aug fmt au! - au BufWritePre javascript,typescript,rust undojoin | Neoformat + au FileType javascript,javascriptreact,typescript,typescriptreact,rust + \ au BufWritePre undojoin | Neoformat aug END " }}}