Skip to content

Commit

Permalink
feat: echo henkan count
Browse files Browse the repository at this point in the history
  • Loading branch information
kawarimidoll committed Nov 27, 2023
1 parent 449337d commit dc6de05
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions k.vim
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ function! k#autocompletefunc()
\ ->filter($"v:val.user_data.yomi =~# '^{s:latest_auto_complete_str}'")

call complete(start_col, comp_list)
echo $'{s:latest_auto_complete_str}: {len(comp_list)}件'

return ''
endfunction
Expand Down Expand Up @@ -403,6 +404,8 @@ function! k#completefunc(suffix_key = '')
endfor
endif

let list_len = len(comp_list)

let current_pos = getcharpos('.')[1:2]
let is_trailing = getline('.')->strcharlen() < current_pos[1]
let context = {
Expand Down Expand Up @@ -432,6 +435,7 @@ function! k#completefunc(suffix_key = '')

call complete(start_col, comp_list)

echo $'{preceding_str}: {list_len}件'
return ''
endfunction

Expand Down

0 comments on commit dc6de05

Please sign in to comment.