Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Use <ESC> key instead of <C-o> in accepting changes
After using a few days, #38 seems to be solved with this commit.
The previous <C-o> way might rely on the UI response time.
  • Loading branch information
jagd authored Oct 31, 2025
commit b65ce394588aa7266a5464734e8964682c3e5277
6 changes: 3 additions & 3 deletions autoload/llama.vim
Original file line number Diff line number Diff line change
Expand Up @@ -1070,9 +1070,9 @@ function! s:fim_render(pos_x, pos_y, data)
endif

" setup accept shortcuts
exe 'inoremap <buffer> ' . g:llama_config.keymap_accept_full . ' <C-O>:call llama#fim_accept(''full'')<CR>'
exe 'inoremap <buffer> ' . g:llama_config.keymap_accept_line . ' <C-O>:call llama#fim_accept(''line'')<CR>'
exe 'inoremap <buffer> ' . g:llama_config.keymap_accept_word . ' <C-O>:call llama#fim_accept(''word'')<CR>'
exe 'inoremap <buffer> ' . g:llama_config.keymap_accept_full . ' <ESC>:call llama#fim_accept(''full'')<CR>a'
exe 'inoremap <buffer> ' . g:llama_config.keymap_accept_line . ' <ESC>:call llama#fim_accept(''line'')<CR>a'
exe 'inoremap <buffer> ' . g:llama_config.keymap_accept_word . ' <ESC>:call llama#fim_accept(''word'')<CR>a'

let s:hint_shown = v:true

Expand Down