aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2022-02-15 20:34:20 +0000
committerJuan J. Martinez <jjm@usebox.net>2022-05-29 22:57:31 +0100
commit7fca8867fb3debd4a7de58c18a16115622302702 (patch)
treea93426661f8f670ef4bbdeb1b75ccd2a99baf9f9
parentdec23afde712845bc59595e02cee84f2c4b3361e (diff)
downloaddotnvim-7fca8867fb3debd4a7de58c18a16115622302702.tar.gz
dotnvim-7fca8867fb3debd4a7de58c18a16115622302702.zip
Tidy up
-rw-r--r--lsc.vim3
-rw-r--r--metals.vim2
2 files changed, 2 insertions, 3 deletions
diff --git a/lsc.vim b/lsc.vim
index 11eee92..3858d08 100644
--- a/lsc.vim
+++ b/lsc.vim
@@ -19,6 +19,3 @@ let g:lsc_server_commands = {
\ }
\ }
-autocmd BufNewFile,BufRead *.sc set filetype=scala
-
-
diff --git a/metals.vim b/metals.vim
index ab933bf..4e1387c 100644
--- a/metals.vim
+++ b/metals.vim
@@ -54,3 +54,5 @@ 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()
+autocmd BufNewFile,BufRead *.sc set filetype=scala
+