We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
format_item
1 parent 9a66c74 commit c44ae63Copy full SHA for c44ae63
lua/kickstart/plugins/debug.lua
@@ -106,13 +106,13 @@ return {
106
},
107
}
108
local menu_options = {}
109
- for k, v in pairs(props) do
110
- table.insert(menu_options, ('%s: %s'):format(k, v.value))
+ for k, _ in pairs(props) do
+ table.insert(menu_options, k)
111
end
112
vim.ui.select(menu_options, {
113
prompt = 'Edit Breakpoint',
114
+ format_item = function(item) return ('%s: %s'):format(item, props[item].value) end,
115
}, function(choice)
- local prompt = (tostring(choice)):gsub(':.*', '')
116
props[prompt].setter(vim.fn.input {
117
prompt = ('[%s] '):format(prompt),
118
default = props[prompt].value,
0 commit comments