@@ -628,30 +628,17 @@ require('lazy').setup({
628628 -- Diagnostic Config
629629 -- See :help vim.diagnostic.Opts
630630 vim .diagnostic .config {
631+ update_in_insert = false ,
631632 severity_sort = true ,
632633 float = { border = ' rounded' , source = ' if_many' },
633634 underline = { severity = vim .diagnostic .severity .ERROR },
634- signs = vim .g .have_nerd_font and {
635- text = {
636- [vim .diagnostic .severity .ERROR ] = ' ' ,
637- [vim .diagnostic .severity .WARN ] = ' ' ,
638- [vim .diagnostic .severity .INFO ] = ' ' ,
639- [vim .diagnostic .severity .HINT ] = ' ' ,
640- },
641- } or {},
642- virtual_text = {
643- source = ' if_many' ,
644- spacing = 2 ,
645- format = function (diagnostic )
646- local diagnostic_message = {
647- [vim .diagnostic .severity .ERROR ] = diagnostic .message ,
648- [vim .diagnostic .severity .WARN ] = diagnostic .message ,
649- [vim .diagnostic .severity .INFO ] = diagnostic .message ,
650- [vim .diagnostic .severity .HINT ] = diagnostic .message ,
651- }
652- return diagnostic_message [diagnostic .severity ]
653- end ,
654- },
635+
636+ -- Can switch between these as you prefer
637+ virtual_text = true , -- Text shows up at the end of the line
638+ virtual_lines = false , -- Teest shows up underneath the line, with virtual lines
639+
640+ -- Auto open the float, so you can easily read the errors when jumping with `[d` and `]d`
641+ jump = { float = true },
655642 }
656643
657644 -- LSP servers and clients are able to communicate to each other what features they support.
0 commit comments