aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_ftplugin/lua.lua
diff options
context:
space:
mode:
authorAradhya Jain <aradhyaj736@gmail.com>2026-10-15 22:39:59 +0530
committerGitHub <noreply@github.com>2026-10-15 12:09:59 -0500
commit8f5f17f415ea382a97f4cc04f89873cadf5c244b (patch)
tree944892bfbca090d9cdeb6e8961119b58dad84539 /runtime/lua/vim/_ftplugin/lua.lua
parent1bfbf417832459d70dc449038b57740b98cc60d1 (diff)
downloadrneovim-8f5f17f415ea382a97f4cc04f89873cadf5c244b.tar.gz
rneovim-8f5f17f415ea382a97f4cc04f89873cadf5c244b.tar.bz2
rneovim-8f5f17f415ea382a97f4cc04f89873cadf5c244b.zip
feat(diagnostic): add source option to virtual_lines handler (#42371)
vim.diagnostic.Opts.VirtualText has a `source` option to prefix diagnostic messages with their source (`'if_many'` or always), but the newer virtual_lines handler never got the same option, even though the shared helpers it needs (diagnostic_shared.prefix_source/count_sources) are already render-target-agnostic and used by virtual_text as-is. Add the same `source` field to vim.diagnostic.Opts.VirtualLines and apply it in the virtual_lines handler right after message formatting, mirroring virtual_text's own ordering (format first, then prefix the source onto the already-formatted message).
Diffstat (limited to 'runtime/lua/vim/_ftplugin/lua.lua')
0 files changed, 0 insertions, 0 deletions