mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 23:18:33 +00:00
vim-patch:9.1.0010: Keymap completion is not available (#26888)
Problem: Keymap completion is not available
Solution: Add keymap completion (Doug Kearns)
Add keymap completion to the 'keymap' option, user commands and builtin
completion functions.
closes: vim/vim#13692
81642d9d6f
Co-authored-by: Doug Kearns <dougkearns@gmail.com>
This commit is contained in:
@@ -5461,6 +5461,10 @@ void set_context_in_set_cmd(expand_T *xp, char *arg, int opt_flags)
|
||||
xp->xp_context = EXPAND_FILETYPE;
|
||||
return;
|
||||
}
|
||||
if (options[opt_idx].var == &p_keymap) {
|
||||
xp->xp_context = EXPAND_KEYMAP;
|
||||
return;
|
||||
}
|
||||
|
||||
// Now pick. If the option has a custom expander, use that. Otherwise, just
|
||||
// fill with the existing option value.
|
||||
|
Reference in New Issue
Block a user