From 36487d273e81364c8d1f97fda802c2ad3ef1ac94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20L=C3=BCdecke?= Date: Fri, 4 Jul 2025 13:05:04 +0200 Subject: [PATCH] Added tiny-inline-diagnostic for wrapped lsp diagnostics --- lua/plugins.lua | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/lua/plugins.lua b/lua/plugins.lua index 6c6210a..c1a85c6 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -588,6 +588,26 @@ require("lazy").setup({ }, }, + -- improved (wrapping!) diagnostics + { + "rachartier/tiny-inline-diagnostic.nvim", + event = "VeryLazy", -- one of LspAttach, VeryLazy + priority = 1000, -- needs to be loaded in first + config = function() + require('tiny-inline-diagnostic').setup({ + options = { + use_icons_from_diagnostic = true, + enable_on_insert = true, + show_all_diags_on_cursorline = true, + multilines = { + enabled = true, + always_show = true, + } + } + }) + vim.diagnostic.config({ virtual_text = false }) -- Only if needed in your configuration, if you already have native LSP diagnostics + end + }, -- new plugins here },