From 91699cf1ec6e00cfa1e2da3dbc04ecd2da3334d2 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Wed, 2 Mar 2022 23:03:40 +0000 Subject: Put this conf in the right file --- lsp.lua | 3 +++ metals.vim | 2 -- 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 -- cgit v1.2.3