From 6bef8f32b19778fdfe52f0eb39719425508dcc7b Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Thu, 24 Apr 2025 11:36:39 +0300 Subject: Refactored nvim config to make it easier and less insanely nested --- .../nvim/lua/plugins/tiny-inline-diagnostic.lua | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .config/nvim/lua/plugins/tiny-inline-diagnostic.lua (limited to '.config/nvim/lua/plugins/tiny-inline-diagnostic.lua') diff --git a/.config/nvim/lua/plugins/tiny-inline-diagnostic.lua b/.config/nvim/lua/plugins/tiny-inline-diagnostic.lua new file mode 100644 index 0000000..620f20f --- /dev/null +++ b/.config/nvim/lua/plugins/tiny-inline-diagnostic.lua @@ -0,0 +1,24 @@ +return { + 'rachartier/tiny-inline-diagnostic.nvim', + event = { 'BufReadPre', 'BufNewFile' }, + opts = { + options = { + -- Throttle the update of the diagnostic when moving cursor, in milliseconds. + -- You can increase it if you have performance issues. + -- Or set it to 0 to have better visuals. + throttle = 0, + + -- The minimum length of the message, otherwise it will be on a new line. + softwrap = 15, + + -- If multiple diagnostics are under the cursor, display all of them. + multiple_diag_under_cursor = true, + + --- Enable it if you want to always have message with `after` characters length. + break_line = { + enabled = false, + after = 30, + }, + }, + }, +} -- cgit v1.3.1