add tiny-inline-diagnostic plugin

This commit is contained in:
2025-02-08 21:18:28 -05:00
parent b5cc85f263
commit f5293ebf19
2 changed files with 30 additions and 5 deletions
+25
View File
@@ -1906,6 +1906,31 @@ M.symbols = {
end,
}
-- Tiny Inline Diagnostic config
M.tiny_inline_diagnostic = {
config = function()
require('tiny-inline-diagnostic').setup({
-- Style preset for diagnostic messages
-- Available options:
-- "modern", "classic", "minimal", "powerline",
-- "ghost", "simple", "nonerdfont", "amongus"
preset = 'modern',
options = {
overflow = {
-- Trigger wrapping to occur this many characters earlier when mode == "wrap".
-- Increase this value appropriately if you notice that the last few characters
-- of wrapped diagnostics are sometimes obscured.
padding = 20,
},
},
})
vim.api.nvim_create_autocmd('LspAttach', {
callback = function()
vim.diagnostic.config({ virtual_text = false }) -- Only if needed in your configuration, if you already have native LSP diagnostics
end,
})
end,
}
--- Todo-comments plugin options
M.todo = {
opts = {