Files
nixos/home/config/nvim/lua/diagnostics.lua
2025-08-15 17:44:24 -04:00

61 lines
1.6 KiB
Lua

require("tiny-inline-diagnostic").setup({
-- Style preset for diagnostic messages
-- Available options:
-- "modern", "classic", "minimal", "powerline",
-- "ghost", "simple", "nonerdfont", "amongus"
preset = "modern",
transparent_bg = false, -- Set the background of the diagnostic to transparent
transparent_cursorline = false, -- Set the background of the cursorline to transparent (only one the first diagnostic)
hi = {
error = "DiagnosticError", -- Highlight group for error messages
warn = "DiagnosticWarn", -- Highlight group for warning messages
info = "DiagnosticInfo", -- Highlight group for informational messages
hint = "DiagnosticHint", -- Highlight group for hint or suggestion messages
arrow = "NonText", -- Highlight group for diagnostic arrows
background = "CursorLine",
mixing_color = "None",
},
options = {
show_source = {
enabled = false,
if_many = false,
},
use_icons_from_diagnostic = false,
set_arrow_to_diag_color = false,
add_messages = true,
throttle = 20,
softwrap = 30,
multilines = {
enabled = false,
always_show = false,
trim_whitespaces = false,
tabstop = 4,
},
show_all_diags_on_cursorline = false,
enable_on_insert = false,
enable_on_select = false,
overflow = {
mode = "wrap",
padding = 0,
},
break_line = {
enabled = false,
after = 30,
},
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,
},
disabled_ft = {} -- List of filetypes to disable the plugin
})