aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2022-03-02 23:03:40 +0000
committerJuan J. Martinez <jjm@usebox.net>2022-05-29 22:57:31 +0100
commit91699cf1ec6e00cfa1e2da3dbc04ecd2da3334d2 (patch)
tree743b99dd0b3510d0b0febbeffff01d9d2a76e7f7
parent1fb53f52d42859fe9d9d2fd8927e69194bd9b1b4 (diff)
downloaddotnvim-91699cf1ec6e00cfa1e2da3dbc04ecd2da3334d2.tar.gz
dotnvim-91699cf1ec6e00cfa1e2da3dbc04ecd2da3334d2.zip
Put this conf in the right file
-rw-r--r--lsp.lua3
-rw-r--r--metals.vim2
2 files changed, 3 insertions, 2 deletions
diff --git a/lsp.lua b/lsp.lua
index d98d914..21da2fa 100644
--- a/lsp.lua
+++ b/lsp.lua
@@ -66,6 +66,9 @@ for lsp, settings in pairs(servers) do
}
end
+-- virtual text is not too useful
+vim.diagnostic.config({ virtual_text = false, signs = true })
+
-- for go
-- install gopls with: go install golang.org/x/tools/gopls@latest
vim.cmd([[autocmd BufWritePre *.go :lua vim.lsp.buf.formatting_seq_sync()]])
diff --git a/metals.vim b/metals.vim
index 4f4c932..0730be8 100644
--- a/metals.vim
+++ b/metals.vim
@@ -45,8 +45,6 @@ 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, signs = true })
endif
" Helpful general settings