Closed kit494way closed 2 years ago
When use vim-clap as selector ui, the list is not updated after the second time.
Once g:clap_provider_* is registered, vim-clap reuses it. Changing g:clap_provider_* does not cause an update of the list displayed by vim-clap. https://github.com/liuchengxu/vim-clap/blob/c1423c928d3fb4df840a85514d1d65054129e23a/autoload/clap.vim#L270-L273
g:clap_provider_*
To update the list in vim-clap each time, g:clap_provider_* must be defined only once, and source field must be a function that update the list.
source
Thanks very much!
When use vim-clap as selector ui, the list is not updated after the second time.
Once
g:clap_provider_*
is registered, vim-clap reuses it. Changingg:clap_provider_*
does not cause an update of the list displayed by vim-clap. https://github.com/liuchengxu/vim-clap/blob/c1423c928d3fb4df840a85514d1d65054129e23a/autoload/clap.vim#L270-L273To update the list in vim-clap each time,
g:clap_provider_*
must be defined only once, andsource
field must be a function that update the list.