From 15d21e5c058bd7f5cb60185ba5454b513a01ed72 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Tue, 21 Dec 2021 12:09:35 +0000 Subject: Format on save --- metals.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metals.vim b/metals.vim index 73299d7..ac44308 100644 --- a/metals.vim +++ b/metals.vim @@ -52,4 +52,4 @@ endif " autocmd FileType scala setlocal omnifunc=v:lua.vim.lsp.omnifunc autocmd FileType scala call MetalsMapKeys() - +autocmd BufWritePre *.scala,*.sc,*.sbt :lua vim.lsp.buf.formatting_seq_sync() -- cgit v1.2.3