aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2021-12-21 12:09:35 +0000
committerJuan J. Martinez <jjm@usebox.net>2022-05-29 22:57:31 +0100
commit15d21e5c058bd7f5cb60185ba5454b513a01ed72 (patch)
treea9339228aa404ac23fbbd0ba37ad3b1437192765
parent6cee271f9bf961213622714e8ee7728c4fc4463b (diff)
downloaddotnvim-15d21e5c058bd7f5cb60185ba5454b513a01ed72.tar.gz
dotnvim-15d21e5c058bd7f5cb60185ba5454b513a01ed72.zip
Format on save
-rw-r--r--metals.vim2
1 files changed, 1 insertions, 1 deletions
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()