Skip to content

Commit

Permalink
feat: add okuri-ari echoback
Browse files Browse the repository at this point in the history
  • Loading branch information
kawarimidoll committed Nov 20, 2023
1 parent 7f1a10e commit 76035c7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion k.vim
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,12 @@ function! k#ins(key, henkan = v:false) abort
endif

if a:henkan
let s:henkan_start_pos = current_pos
if s:henkan_start_pos[0] != current_pos[0] || s:henkan_start_pos[1] > current_pos[1]
let s:henkan_start_pos = current_pos
else
let preceding_str = getline('.')->slice(s:henkan_start_pos[1]-1, charcol('.')-1)
echomsg preceding_str .. a:key
endif
endif

let kana_dict = get(s:end_keys, a:key, {})
Expand Down

0 comments on commit 76035c7

Please sign in to comment.