Files
neovim/runtime/doc
Dmytro Pletenskyi 01666aae64 feat(diagnostic): fromqflist({merge_lines}) #37416
Problem:
`vim.diagnostic.fromqflist` ignores lines that are `item.valid == 0` (see
`getqflist`). Many qflists have messages that span multiple lines, which look
like this:

    collection/src/Modelling/CdOd/Central.hs|496 col 80| error: [GHC-83865]
    ||     • Couldn't match expected type: InstanceWithForm
    ||                                       (FilePath
    ||                                        -> SelectValidCdInstWithForm
    ...

calling `vim.diagnostic.fromqflist(vim.fn.getqflist)` gets a diagnostic message
like this:

    error: [GHC-83865]

only the first line is kept, but often, the remaing lines are useful as well.

Solution:
Introduce `merge_lines` option, which "squashes" lines from invalid qflist items
into the error message of the previous valid item, so that we get this
diagnostic message instead:

    error: [GHC-83865]
         • Couldn't match expected type: InstanceWithForm
                                           (FilePath
                                            -> SelectValidCdInstWithForm
2026-02-14 06:07:01 -05:00
..
2026-01-27 17:14:57 -05:00
2026-02-12 13:46:45 +01:00
2026-02-12 13:46:45 +01:00
2026-02-12 13:46:45 +01:00
2026-02-12 13:46:45 +01:00
2024-05-15 23:19:26 +02:00
2026-02-12 13:46:45 +01:00
2025-12-06 20:33:02 -05:00
2025-12-06 20:33:02 -05:00
2025-12-06 20:33:02 -05:00
2023-06-25 17:14:28 +02:00
2025-12-06 20:33:02 -05:00
2026-01-27 17:14:57 -05:00
2025-12-16 13:46:04 -05:00
2026-01-12 03:50:57 +00:00
2026-02-12 13:46:45 +01:00
2025-12-15 13:55:15 -05:00
2026-02-12 13:46:45 +01:00
2025-12-15 13:55:15 -05:00
2026-01-23 09:30:37 +01:00
2026-02-12 13:46:45 +01:00
2025-12-15 13:55:15 -05:00
2025-09-28 20:57:59 -07:00
2025-12-15 13:55:15 -05:00
2025-12-15 13:55:15 -05:00
2025-12-06 20:33:02 -05:00
2025-12-15 13:55:15 -05:00
2026-01-27 17:14:57 -05:00
2026-01-07 08:11:42 +08:00
2025-12-06 20:33:02 -05:00
2025-12-06 20:33:02 -05:00
2025-12-15 13:55:15 -05:00
2025-12-16 12:55:32 +08:00