break: deprecate utils.get_default utils.if_nil (#1545)
This commit is contained in:
committed by
Simon Hauser
parent
a1aec79cb1
commit
83b6cadb2c
@@ -754,7 +754,7 @@ function make_entry.gen_from_picker(opts)
|
||||
return {
|
||||
value = entry,
|
||||
text = entry.prompt_title,
|
||||
ordinal = string.format("%s %s", entry.prompt_title, utils.get_default(entry.default_text, "")),
|
||||
ordinal = string.format("%s %s", entry.prompt_title, vim.F.if_nil(entry.default_text, "")),
|
||||
display = make_display,
|
||||
}
|
||||
end
|
||||
@@ -978,7 +978,7 @@ function make_entry.gen_from_diagnostics(opts)
|
||||
end)()
|
||||
|
||||
local display_items = {
|
||||
{ width = utils.if_nil(signs, 8, 10) },
|
||||
{ width = signs ~= nil and 10 or 8 },
|
||||
{ remaining = true },
|
||||
}
|
||||
local line_width = vim.F.if_nil(opts.line_width, 0.5)
|
||||
|
||||
Reference in New Issue
Block a user