Add back tiny inline diagnostics now that its matured, and with better config
This commit is contained in:
parent
fb6de1388c
commit
adc54f618a
2 changed files with 23 additions and 3 deletions
|
|
@ -29,9 +29,11 @@ local sev = vim.diagnostic.severity
|
|||
vim.diagnostic.config({
|
||||
underline = true,
|
||||
-- This enables the diagnostics at end of line
|
||||
virtual_text = {
|
||||
prefix = "●",
|
||||
},
|
||||
-- virtual_text = {
|
||||
-- prefix = "●",
|
||||
-- },
|
||||
-- Disable this whilst using tiny inline diagnostics
|
||||
virtual_text = false,
|
||||
-- This enables the separate buffer diagnostics
|
||||
-- virtual_lines = true,
|
||||
update_in_insert = true,
|
||||
|
|
|
|||
18
nvim/lua/plugs/tiny-inline-diagnostics.lua
Normal file
18
nvim/lua/plugs/tiny-inline-diagnostics.lua
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
return {
|
||||
"rachartier/tiny-inline-diagnostic.nvim",
|
||||
event = "VeryLazy",
|
||||
priority = 1000,
|
||||
config = function()
|
||||
require("tiny-inline-diagnostic").setup({
|
||||
preset = "classic",
|
||||
transparent_bg = true,
|
||||
options = {
|
||||
multilines = {
|
||||
enabled = true,
|
||||
always_show = true,
|
||||
},
|
||||
},
|
||||
})
|
||||
vim.diagnostic.config({ virtual_text = false })
|
||||
end
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue