add tiny-inline-diagnostic plugin
This commit is contained in:
@@ -1906,6 +1906,31 @@ M.symbols = {
|
|||||||
end,
|
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
|
--- Todo-comments plugin options
|
||||||
M.todo = {
|
M.todo = {
|
||||||
opts = {
|
opts = {
|
||||||
|
|||||||
@@ -68,11 +68,11 @@ return {
|
|||||||
keys = require('data.keys').easyalign,
|
keys = require('data.keys').easyalign,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
config = function()
|
'rachartier/tiny-inline-diagnostic.nvim',
|
||||||
},
|
event = 'VeryLazy', -- Or `LspAttach`
|
||||||
},
|
priority = 1000, -- needs to be loaded in first
|
||||||
})
|
cond = require('data.cond').tiny_inline_diagnostic,
|
||||||
end,
|
config = require('data.types').tiny_inline_diagnostic.config,
|
||||||
},
|
},
|
||||||
-- { -- Vim-Shebang
|
-- { -- Vim-Shebang
|
||||||
-- 'vitalk/vim-shebang',
|
-- 'vitalk/vim-shebang',
|
||||||
|
|||||||
Reference in New Issue
Block a user