aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua
diff options
context:
space:
mode:
authorEvgeni Chasnovski <evgeni.chasnovski@gmail.com>2025-04-03 18:19:37 +0300
committerGitHub <noreply@github.com>2025-04-03 10:19:37 -0500
commit71e133e5e66a3346ac57bb3287f0ca95dde8ffec (patch)
treecccbfd172d8c146463c7afca61fbf7bdf7488174 /runtime/lua
parenteae2d3b145c724e8c801c7c22a2ccc3bde5534eb (diff)
downloadrneovim-71e133e5e66a3346ac57bb3287f0ca95dde8ffec.tar.gz
rneovim-71e133e5e66a3346ac57bb3287f0ca95dde8ffec.tar.bz2
rneovim-71e133e5e66a3346ac57bb3287f0ca95dde8ffec.zip
docs(diagnostic): mention `severity` in `Opts.VirtualLines` (#33293)
Problem: `severity` field is recognized by `vim.diagnostic.Opts.VirtualLines`, but it is not explicitly documented. Solution: document it.
Diffstat (limited to 'runtime/lua')
-rw-r--r--runtime/lua/vim/diagnostic.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/lua/vim/diagnostic.lua b/runtime/lua/vim/diagnostic.lua
index c52b42b382..6e91a27512 100644
--- a/runtime/lua/vim/diagnostic.lua
+++ b/runtime/lua/vim/diagnostic.lua
@@ -241,6 +241,10 @@ end
--- @class vim.diagnostic.Opts.VirtualLines
---
+--- Only show virtual lines for diagnostics matching the given
+--- severity |diagnostic-severity|
+--- @field severity? vim.diagnostic.SeverityFilter
+---
--- Only show diagnostics for the current line.
--- (default: `false`)
--- @field current_line? boolean
@@ -252,7 +256,7 @@ end
--- @class vim.diagnostic.Opts.Signs
---
---- Only show virtual text for diagnostics matching the given
+--- Only show signs for diagnostics matching the given
--- severity |diagnostic-severity|
--- @field severity? vim.diagnostic.SeverityFilter
---