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.
1 parent 8cd3740 commit 7f5ef0fCopy full SHA for 7f5ef0f
lua/blink/cmp/sources/cmdline/init.lua
@@ -219,6 +219,12 @@ function cmdline:get_completions(context, callback)
219
option_info = self.options[completion]
220
if option_info then label_details = { description = option_info.shortname } end
221
222
+ -- mappings
223
+ elseif completion_type == 'mapping' then
224
+ completion = completion:gsub('\22', '') -- remove control characters
225
+ completion = vim.fn.keytrans(completion):gsub('<lt>', '<')
226
+ filter_text, new_text = completion, completion
227
+
228
-- env variables
229
elseif completion_type == 'environment' then
230
filter_text = '$' .. completion
0 commit comments