From 80662fb273bc76781969ea73a46b93d8d088f803 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Sat, 23 Jul 2022 09:07:04 +0200 Subject: [PATCH] nvim: enable lsp_lines for pretty diagnostics --- .config/nvim/lua/dln/lsp-config.lua | 2 +- .config/nvim/lua/plugins.lua | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.config/nvim/lua/dln/lsp-config.lua b/.config/nvim/lua/dln/lsp-config.lua index e044260..7c93950 100644 --- a/.config/nvim/lua/dln/lsp-config.lua +++ b/.config/nvim/lua/dln/lsp-config.lua @@ -11,7 +11,7 @@ vim.lsp.with( vim.lsp.diagnostic.on_publish_diagnostics, { update_in_insert = false, - virtual_text = {prefix = "‹❮❰ " } + virtual_text = false, } ) local signs = { Error = "🔥", Warn = "⚠️ ", Hint = "💡", Info = "💡" } diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua index 2b1ad57..c318f67 100644 --- a/.config/nvim/lua/plugins.lua +++ b/.config/nvim/lua/plugins.lua @@ -225,6 +225,17 @@ return require('packer').startup(function() config = function() require("plugins/zenbones") end, } + -- lsp_lines + use { + "https://git.sr.ht/~whynothugo/lsp_lines.nvim", + config = function() + require("lsp_lines").setup() + vim.diagnostic.config({ + virtual_text = false, + }) + end + } + -- copilot -- use({ -- "github/copilot.vim",