aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2021-12-06 15:00:49 +0000
committerJuan J. Martinez <jjm@usebox.net>2022-05-29 22:57:31 +0100
commit3e87924df99f8def1d0bc643a1d4bf1d178cd964 (patch)
tree1e6b4c0d4a677d76c6b0303355b76c6d41edbd19
parentc9556cf64c3bd865d4b78fcdf663962a2df00f91 (diff)
downloaddotnvim-3e87924df99f8def1d0bc643a1d4bf1d178cd964.tar.gz
dotnvim-3e87924df99f8def1d0bc643a1d4bf1d178cd964.zip
Better wrap this
-rw-r--r--metals.vim5
1 files changed, 2 insertions, 3 deletions
diff --git a/metals.vim b/metals.vim
index f741203..435ed40 100644
--- a/metals.vim
+++ b/metals.vim
@@ -42,11 +42,10 @@ if has('nvim-0.5')
au!
au FileType scala,sbt lua require('metals').initialize_or_attach(metals_config)
augroup end
+ " virtual text is not too useful
+ :lua vim.diagnostic.config({ virtual_text = false })
endif
-" virtual text is not too useful
-:lua vim.diagnostic.config({ virtual_text = false })
-
" Helpful general settings
"
autocmd FileType scala setlocal omnifunc=v:lua.vim.lsp.omnifunc