···11+ require("tiny-inline-diagnostic").setup({
22+ preset = "powerline",
33+ transparent_bg = false,
44+ -- transparent_cursorline = true,
55+ hi = {
66+ -- Highlight group for error messages
77+ error = "DiagnosticError",
88+99+ -- Highlight group for warning messages
1010+ warn = "DiagnosticWarn",
1111+1212+ -- Highlight group for informational messages
1313+ info = "DiagnosticInfo",
1414+1515+ -- Highlight group for hint or suggestion messages
1616+ hint = "DiagnosticHint",
1717+1818+ -- Highlight group for diagnostic arrows
1919+ arrow = "NonText",
2020+2121+ -- Background color for diagnostics
2222+ -- Can be a highlight group or a hexadecimal color (#RRGGBB)
2323+ background = "CursorLine",
2424+2525+ -- Color blending option for the diagnostic background
2626+ -- Use "None" or a hexadecimal color (#RRGGBB) to blend with another color
2727+ -- Default is "Normal" in the source code
2828+ mixing_color = "Normal",
2929+ },
3030+ options = {
3131+ -- Display the source of the diagnostic (e.g., basedpyright, vsserver, lua_ls etc.)
3232+ show_source = {
3333+ enabled = false,
3434+ -- Show source only when multiple sources exist for the same diagnostic
3535+ if_many = false,
3636+ },
3737+3838+ -- Use icons defined in the diagnostic configuration instead of preset icons
3939+ use_icons_from_diagnostic = false,
4040+4141+ -- Set the arrow icon to the same color as the first diagnostic severity
4242+ set_arrow_to_diag_color = false,
4343+4444+ -- Add messages to diagnostics when multiline diagnostics are enabled
4545+ -- If set to false, only signs will be displayed
4646+ add_messages = true,
4747+4848+ -- Time (in milliseconds) to throttle updates while moving the cursor
4949+ -- Increase this value for better performance on slow computers
5050+ -- Set to 0 for immediate updates and better visual feedback
5151+ throttle = 20,
5252+5353+ -- Minimum message length before wrapping to a new line
5454+ softwrap = 30,
5555+5656+ -- Configuration for multiline diagnostics
5757+ -- Can be a boolean or a table with detailed options
5858+ multilines = {
5959+ -- Enable multiline diagnostic messages
6060+ enabled = false,
6161+6262+ -- Always show messages on all lines for multiline diagnostics
6363+ always_show = false,
6464+6565+ -- Trim whitespaces from the start/end of each line
6666+ trim_whitespaces = false,
6767+6868+ -- Replace tabs with this many spaces in multiline diagnostics
6969+ tabstop = 4,
7070+ },
7171+7272+ -- Display all diagnostic messages on the cursor line, not just those under cursor
7373+ show_all_diags_on_cursorline = false,
7474+7575+ -- Enable diagnostics in Insert mode
7676+ -- If enabled, consider setting throttle to 0 to avoid visual artifacts
7777+ enable_on_insert = false,
7878+7979+ -- Enable diagnostics in Select mode (e.g., when auto-completing with Blink)
8080+ enable_on_select = false,
8181+8282+ -- Manage how diagnostic messages handle overflow
8383+ overflow = {
8484+ -- Overflow handling mode:
8585+ -- "wrap" - Split long messages into multiple lines
8686+ -- "none" - Do not truncate messages
8787+ -- "oneline" - Keep the message on a single line, even if it's long
8888+ mode = "wrap",
8989+9090+ -- Trigger wrapping this many characters earlier when mode == "wrap"
9191+ -- Increase if the last few characters of wrapped diagnostics are obscured
9292+ padding = 0,
9393+ },
9494+9595+ -- Configuration for breaking long messages into separate lines
9696+ break_line = {
9797+ -- Enable breaking messages after a specific length
9898+ enabled = false,
9999+100100+ -- Number of characters after which to break the line
101101+ after = 30,
102102+ },
103103+104104+ -- Custom format function for diagnostic messages
105105+ -- Function receives a diagnostic object and should return a string
106106+ -- Example: function(diagnostic) return diagnostic.message .. " [" .. diagnostic.source .. "]" end
107107+ format = nil,
108108+109109+ -- Virtual text display configuration
110110+ virt_texts = {
111111+ -- Priority for virtual text display (higher values appear on top)
112112+ -- Increase if other plugins (like GitBlame) override diagnostics
113113+ priority = 2048,
114114+ },
115115+116116+ -- Filter diagnostics by severity levels
117117+ -- Available severities: vim.diagnostic.severity.ERROR, WARN, INFO, HINT
118118+ severity = {
119119+ vim.diagnostic.severity.ERROR,
120120+ vim.diagnostic.severity.WARN,
121121+ vim.diagnostic.severity.INFO,
122122+ vim.diagnostic.severity.HINT,
123123+ },
124124+125125+ -- Events to attach diagnostics to buffers
126126+ -- Default: { "LspAttach" }
127127+ -- Only change if the plugin doesn't work with your configuration
128128+ overwrite_events = nil,
129129+ },
130130+131131+ -- List of filetypes to disable the plugin for
132132+ disabled_ft = {}
133133+ })