summaryrefslogtreecommitdiff
path: root/lua/telescope/make_entry.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/telescope/make_entry.lua')
-rw-r--r--lua/telescope/make_entry.lua15
1 files changed, 14 insertions, 1 deletions
diff --git a/lua/telescope/make_entry.lua b/lua/telescope/make_entry.lua
index 2a17f80..699145c 100644
--- a/lua/telescope/make_entry.lua
+++ b/lua/telescope/make_entry.lua
@@ -827,11 +827,23 @@ function make_entry.gen_from_keymaps(opts)
return utils.display_termcodes(entry.lhs)
end
+ local function get_attr(entry)
+ local ret = ""
+ if entry.value.noremap ~= 0 then
+ ret = ret .. "*"
+ end
+ if entry.value.buffer ~= 0 then
+ ret = ret .. "@"
+ end
+ return ret
+ end
+
local displayer = require("telescope.pickers.entry_display").create {
separator = "▏",
items = {
- { width = 2 },
+ { width = 3 },
{ width = opts.width_lhs },
+ { width = 2 },
{ remaining = true },
},
}
@@ -839,6 +851,7 @@ function make_entry.gen_from_keymaps(opts)
return displayer {
entry.mode,
get_lhs(entry),
+ get_attr(entry),
get_desc(entry),
}
end