From f582079a5278f7282a22aabc2941e87a4e705442 Mon Sep 17 00:00:00 2001 From: BrotifyPacha Date: Tue, 4 May 2021 16:47:21 +0300 Subject: [PATCH] Fix "." mapping delay Adds custom elseif for "." in s:has_children() func. --- autoload/which_key.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autoload/which_key.vim b/autoload/which_key.vim index 3ecb622..cb4fc1c 100644 --- a/autoload/which_key.vim +++ b/autoload/which_key.vim @@ -173,6 +173,8 @@ function! s:has_children(input) abort let group = map(keys(s:runtime), 'v:val =~# "^\'.a:input.'"') elseif a:input ==# '"' let group = map(keys(s:runtime), "v:val =~# '^".a:input."'") + elseif a:input == '.' + let group = map(keys(s:runtime), "v:val =~# '^\\.'") else let group = map(keys(s:runtime), 'v:val =~# "^'.a:input.'"') endif