vim.diagnostic.Opts.Signs
Fields5
Signs.severity : vim.diagnostic.SeverityFilter | nil
Only show signs for diagnostics matching the given severity |diagnostic-severity|
Signs.priority : nil | integer
Base priority to use for signs. When {severity_sort} is used, the priority of a sign is adjusted based on its severity. Otherwise, all signs use the same priority. (default: 10)
Signs.text : {vim.diagnostic.Severity, string} | nil
A table mapping |diagnostic-severity| to the sign text to display in the sign column and statusline. The default is to use "E", "W", "I", and "H" for errors, warnings, information, and hints, respectively. Example:
vim.diagnostic.config({
signs = { text = { [vim.diagnostic.severity.ERROR] = 'E', ... } }
})
Signs.numhl : {vim.diagnostic.Severity, string} | nil
A table mapping |diagnostic-severity| to the highlight group used for the line number where the sign is placed.
Signs.linehl : {vim.diagnostic.Severity, string} | nil
A table mapping |diagnostic-severity| to the highlight group used for the whole line the sign is placed in.