Closed purpleP closed 3 years ago
Could you point me to the PR from deoplete?
@prabirshrestha https://github.com/Shougo/deoplete.nvim/pull/411 It may not be clear, but he hasn't merged this pull request. He have done something else to achieve the same functionality.
Looks like it's to restore user's completeopt
when the plugin is not popping anything.
@roxma yes, basically it is. This is probably the only thing preventing me to use this plugin. Not that deoplete isn't good enough, but I like portability across vim/neovim that this plugin provides.
https://github.com/prabirshrestha/asyncomplete.vim/pull/69 Would this solve or do we still need that fix. We can try fixing it in v2 branch.
It should had been solved by https://github.com/prabirshrestha/asyncomplete.vim/pull/69 let me know if you are still having issues.
FYI, ncm2 have two autocmds, Ncm2PopupOpen
and Ncm2PopupClose
, one can use something like this for changing completeopt when the plugin is active or inactive:
autocmd User Ncm2PopupOpen set completeopt=noinsert,menuone,noselect
autocmd User Ncm2PopupClose set completeopt=menuone
That does sound better. Will reopen it for now.
@purpleP Pls check #175
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I've already opened similar issue on
deoplete
and Shougo was kind enough to implement it after I've made a pull request. The behaviour I want to preserve is when there is not popupmenu (because there's no completion yet because you haven't entered enough characters to trigger it)C-n
andC-p
should insert closest next/previous word. It's actually pretty useful in some cases. Consider in pythonSome = namedtuple('|
pressingC-p
here twice would insertSome
. Or when passing keyword arguments in pythoncontext=context
instead of retyping one could simply pressC-p
. Also there is a recipe that uses this behaviour to create a mapping to autoclose xml tags.