add 'full' for line_width in diagnostics options (#2452)
* add 'full' for line_width in diagnostics options * lowercase documentation entry and change error notify method * moved line_width options checking
This commit is contained in:
@@ -1164,9 +1164,13 @@ function make_entry.gen_from_diagnostics(opts)
|
||||
{ remaining = true },
|
||||
}
|
||||
local line_width = vim.F.if_nil(opts.line_width, 0.5)
|
||||
local line_width_opts = { width = line_width }
|
||||
if type(line_width) == "string" and line_width == "full" then
|
||||
line_width_opts = {}
|
||||
end
|
||||
local hidden = utils.is_path_hidden(opts)
|
||||
if not hidden then
|
||||
table.insert(display_items, 2, { width = line_width })
|
||||
table.insert(display_items, 2, line_width_opts)
|
||||
end
|
||||
local displayer = entry_display.create {
|
||||
separator = "▏",
|
||||
|
||||
Reference in New Issue
Block a user