Closed jsatk closed 3 years ago
Thanks for pointing these out! So keep in mind that some of them won't work with Vim, only Neovim. For example the expand decoration and codelens ones won't work without Neovim. So maybe some clarity in the example mappings about which are Neovim specific would help as well.
Thanks for pointing these out! So keep in mind that some of them won't work with Vim, only Neovim. For example the expand decoration and codelens ones won't work without Neovim. So maybe some clarity in the example mappings about which are Neovim specific would help as well.
That's good info. I didn't know that.
So I figured out one big error I made in my above testing with the minimal vimrc. I did not re-map leader to my usual leader key of ,
and therefore none of the mappings that use leader worked. 🤦♂️
I retested in both Neovim & Vim and here's my findings.
" Use <c-space> to trigger completion.
inoremap <silent><expr> <c-space> coc#refresh()
For both Neovim & vim this bit still makes little sense to me as if you use Tab or the up & down it fully fills in the word and pressing Enter confirms your choice and makes the pop up go away. It's unclear to me what <c-space>
actually does different than enter? And <c-space>
doesn't seem to do anything if you use the default <c-n>
and <c-p>
to navigate up and down (which does not automatically complete the word like the other methods do). I feel like I'm missing something.
Everything else worked just fine once I realized I was a dummy using the wrong leader key.
For both Neovim & vim this bit still makes little sense to me
So from the way I understand it this is useful if people turn completions off, forcing them to have to trigger them manually, with <c-space>
. Same thing if you're at a completion position like List(1, 2, 3).ma@@
and you cancel the completion, you should still be able to <c-space>
and get them to appear again... I think.
For both Neovim & vim this bit still makes little sense to me
So from the way I understand it this is useful if people turn completions off, forcing them to have to trigger them manually, with
<c-space>
. Same thing if you're at a completion position likeList(1, 2, 3).ma@@
and you cancel the completion, you should still be able to<c-space>
and get them to appear again... I think.
I tried with both <c-e>
to close out of the completion menu and <esc>
and then a
(to re-enter insert mode). In both instances <c-space>
didn't do what I'd expect. It just repeats the phrase I just typed.
I made an (overly long... sorry) 2m video demoing it in a worksheet. http://i.jsatk.us/9lr3fh
Again, possible I'm missing something here.
I tried with both
<c-e>
to close out of the completion menu and<esc>
and thena
(to re-enter insert mode). In both instances<c-space>
didn't do what I'd expect. It just repeats the phrase I just typed.I made an (overly long... sorry) 2m video demoing it in a worksheet. http://i.jsatk.us/9lr3fh
Again, possible I'm missing something here.
huh, I honestly have no idea then.
Describe the bug
Some of the mappings are no longer accurate or simply do not work out-of-the-box.
To Reproduce Steps to reproduce the behavior:
coc-mappings.vim
:vim -N -u path/to/coc-mappings.vim
Expected behavior
I expect them to do what they say 😄.
Installation:
Search terms
mappings vimrc