From b65ce394588aa7266a5464734e8964682c3e5277 Mon Sep 17 00:00:00 2001 From: "C. Wu" Date: Fri, 31 Oct 2025 12:34:44 +0100 Subject: [PATCH] Use key instead of in accepting changes After using a few days, #38 seems to be solved with this commit. The previous way might rely on the UI response time. --- autoload/llama.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autoload/llama.vim b/autoload/llama.vim index 03215ea..acdc301 100644 --- a/autoload/llama.vim +++ b/autoload/llama.vim @@ -1070,9 +1070,9 @@ function! s:fim_render(pos_x, pos_y, data) endif " setup accept shortcuts - exe 'inoremap ' . g:llama_config.keymap_accept_full . ' :call llama#fim_accept(''full'')' - exe 'inoremap ' . g:llama_config.keymap_accept_line . ' :call llama#fim_accept(''line'')' - exe 'inoremap ' . g:llama_config.keymap_accept_word . ' :call llama#fim_accept(''word'')' + exe 'inoremap ' . g:llama_config.keymap_accept_full . ' :call llama#fim_accept(''full'')a' + exe 'inoremap ' . g:llama_config.keymap_accept_line . ' :call llama#fim_accept(''line'')a' + exe 'inoremap ' . g:llama_config.keymap_accept_word . ' :call llama#fim_accept(''word'')a' let s:hint_shown = v:true