Shougo / ddc.vim

Dark deno-powered completion framework for Vim/NeoVim
MIT License
669 stars 33 forks source link

popup items are not refreshed #122

Closed chunxuan-hs closed 1 year ago

chunxuan-hs commented 1 year ago

Problems summary

dd.vim do not eliminate not matched items. Not sure if there are something wrong with ddc updates or I have messed up my cofig again.

Expected

If the the strings do not match requirement, they will be removed from the pop up.

Environment Information

Provide a minimal init.vim/vimrc without plugin managers (Required!)

call ddc#custom#patch_global('ui', 'native')

call ddc#custom#patch_global('sources', ['around'])

call ddc#custom#patch_global('sourceOptions', #{
      \ _: #{
      \   matchers: ['matcher_head'],
      \   sorters: ['sorter_rank']},
      \ })

" Change source options
call ddc#custom#patch_global('sourceOptions', #{
      \   around: #{
      \     mark: 'A',
      \     isVolatile: v:true},
      \ })

call ddc#custom#patch_global('sourceParams', #{
      \   around: #{ maxSize: 500 },
      \ })

inoremap <silent><expr> <TAB>
\ pumvisible() ? '<C-n>' :
\ (col('.') <= 1 <Bar><Bar> getline('.')[col('.') - 2] =~# '\s') ?
\ '<TAB>' : ddc#map#manual_complete()

" <S-TAB>: completion back.
inoremap <expr><S-TAB>  pumvisible() ? '<C-p>' : '<C-h>'

set completeopt+=noinsert
call ddc#enable()

How to reproduce the problem from neovim/Vim startup (Required!)

type the something and pop up will never refresh.

Screenshot (if possible)

As dattt do not match anything in the text, the popup should be empty. And it worked like that before.

Screenshot 2023-05-11 at 21 25 27
Shougo commented 1 year ago

Fixed. Please update ddc-ui-native.