summaryrefslogtreecommitdiff
path: root/lua/telescope/make_entry.lua
diff options
context:
space:
mode:
authorSimon Hauser <Simon-Hauser@outlook.de>2022-05-22 12:53:37 +0200
committerSimon Hauser <simon.hauser@helsinki-systems.de>2022-06-30 14:01:49 +0200
commit83b6cadb2c61b6eee6a8f0ec8bb4599c89b6ab57 (patch)
tree9e33acbc68a154e2ddb1fca34cfa87f6f80b2904 /lua/telescope/make_entry.lua
parenta1aec79cb1abc5630f941bafbe83f6e00dcff316 (diff)
break: deprecate utils.get_default utils.if_nil (#1545)
Diffstat (limited to 'lua/telescope/make_entry.lua')
-rw-r--r--lua/telescope/make_entry.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/telescope/make_entry.lua b/lua/telescope/make_entry.lua
index c71849d..f4f0010 100644
--- a/lua/telescope/make_entry.lua
+++ b/lua/telescope/make_entry.lua
@@ -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)