Files
neovim/runtime/lua/vim
Michael Clayton d567f899ef fix(diagnostic): allow virtual_{lines,text} cursor exclusivity #33517
Problem:
virtual_text diagnostics are great when skimming a file, and
virtual_lines are great when "zooming in" on a particular problem.
Having both enabled results in duplicate diagnostics on-screen.

Solution:
This PR expands the behavior of `current_line` for virtual_text and
virtual_lines by making `virtual_text.current_line = false` distinct
from `nil`.  If you set:

    vim.diagnostic.config({
      virtual_text = { current_line = false },
      virtual_lines = { current_line = true },
    })

With this configuration, virtual_text will be used to display
diagnostics until the cursor reaches the same line, at which point they
will be hidden and virtual_lines will take its place.
2025-05-01 03:54:39 -07:00
..
2025-04-27 15:44:11 -07:00
2024-03-06 10:45:22 +00:00
2024-01-16 09:33:10 +00:00
2025-04-27 15:44:11 -07:00
2025-04-27 13:40:46 -07:00
2025-03-15 15:00:44 +01:00
2025-04-27 15:44:11 -07:00
2025-02-26 23:06:22 +01:00