diff --git a/flake.lock b/flake.lock index 41a6fb4..5cfd345 100644 --- a/flake.lock +++ b/flake.lock @@ -5943,11 +5943,11 @@ "tiny-inline-diagnostic-nvim": { "flake": false, "locked": { - "lastModified": 1736805866, - "narHash": "sha256-jNPUfCxWAvTnLP43t6I94mlMfaXaCl+rUuMU2E5XixE=", + "lastModified": 1737370340, + "narHash": "sha256-VDW9oI0Ks+1ZZugeh5eJYzexOMl+Twy9rkAq1A5hgWg=", "owner": "rachartier", "repo": "tiny-inline-diagnostic.nvim", - "rev": "5922bb3dd691a2a37bd51e20d4a3dc7895221e51", + "rev": "2c50854895c9b553482d4289976194a477b41b8f", "type": "github" }, "original": { diff --git a/fnl/tiny-inline-diagnostic.fnl b/fnl/tiny-inline-diagnostic.fnl index f33210f..4b1813a 100644 --- a/fnl/tiny-inline-diagnostic.fnl +++ b/fnl/tiny-inline-diagnostic.fnl @@ -1,16 +1,23 @@ (let [M (require :tiny-inline-diagnostic) + hi {:error :DiagnosticError + :warn :DiagnosticWarn + :info :DiagnosticInfo + :hint :DiagnosticHint + :arrow :NonText + :background :Normal + :mixing_color :None} options {:show_source false :use_icons_from_diagnostic false :add_messages true :throttle 150 - :softwrap 30 + :softwrap 50 :multiple_diag_under_cursor false :multilines {:enabled false :always_show false} :show_all_diags_on_cursorline false :enable_on_insert false :enable_on_select false :overflow {:mode :wrap} - :break_line {:enabled false :after 30} + :break_line {:enabled false :after 50} :format nil :virt_texts {:priority 2048} :severity [vim.diagnostic.severity.ERROR @@ -18,4 +25,4 @@ vim.diagnostic.severity.INFO vim.diagnostic.severity.HINT] :overwrite_events nil}] - (M.setup {:preset :nonerdfont : options})) + (M.setup {:preset :simple : hi : options})) diff --git a/lua/autogen/tiny-inline-diagnostic.lua b/lua/autogen/tiny-inline-diagnostic.lua index 3835ae4..4f376fe 100644 --- a/lua/autogen/tiny-inline-diagnostic.lua +++ b/lua/autogen/tiny-inline-diagnostic.lua @@ -1,4 +1,5 @@ -- [nfnl] Compiled from fnl/tiny-inline-diagnostic.fnl by https://github.com/Olical/nfnl, do not edit. local M = require("tiny-inline-diagnostic") -local options = {add_messages = true, throttle = 150, softwrap = 30, multilines = {always_show = false, enabled = false}, overflow = {mode = "wrap"}, break_line = {after = 30, enabled = false}, format = nil, virt_texts = {priority = 2048}, severity = {vim.diagnostic.severity.ERROR, vim.diagnostic.severity.WARN, vim.diagnostic.severity.INFO, vim.diagnostic.severity.HINT}, overwrite_events = nil, enable_on_insert = false, enable_on_select = false, multiple_diag_under_cursor = false, show_all_diags_on_cursorline = false, show_source = false, use_icons_from_diagnostic = false} -return M.setup({preset = "nonerdfont", options = options}) +local hi = {error = "DiagnosticError", warn = "DiagnosticWarn", info = "DiagnosticInfo", hint = "DiagnosticHint", arrow = "NonText", background = "Normal", mixing_color = "None"} +local options = {add_messages = true, throttle = 150, softwrap = 50, multilines = {always_show = false, enabled = false}, overflow = {mode = "wrap"}, break_line = {after = 50, enabled = false}, format = nil, virt_texts = {priority = 2048}, severity = {vim.diagnostic.severity.ERROR, vim.diagnostic.severity.WARN, vim.diagnostic.severity.INFO, vim.diagnostic.severity.HINT}, overwrite_events = nil, enable_on_insert = false, enable_on_select = false, multiple_diag_under_cursor = false, show_all_diags_on_cursorline = false, show_source = false, use_icons_from_diagnostic = false} +return M.setup({preset = "simple", hi = hi, options = options})