From fb0c23b42749c52f5f99965eb77b621d50ba2a5b Mon Sep 17 00:00:00 2001 From: William Boman Date: Tue, 16 Aug 2022 17:12:48 +0200 Subject: fix(ui): use custom diagnostic config (#303) Fixes #300. --- lua/mason-core/ui/display.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lua') diff --git a/lua/mason-core/ui/display.lua b/lua/mason-core/ui/display.lua index 97fc36fc..6a03ae11 100644 --- a/lua/mason-core/ui/display.lua +++ b/lua/mason-core/ui/display.lua @@ -200,6 +200,13 @@ function M.new_view_only_win(name, filetype) ---@type WindowOpts local window_opts = {} + vim.diagnostic.config({ + virtual_text = true, + underline = false, + signs = false, + virtual_lines = false, + }, namespace) + local function delete_win_buf() -- We queue the win_buf to be deleted in a schedule call, otherwise when used with folke/which-key (and -- set timeoutlen=0) we run into a weird segfault. -- cgit v1.2.3-70-g09d2