New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue on pressing tab at the end of a word #534
Comments
What does next tab position means? |
The cursor is at the end of a word doesn't means the completion request would return empty results, it's sometimes. |
It means inserting a tab character.
Indeed. Check this wiki page: https://github.com/neoclide/coc.nvim/wiki/Completion-with-sources#improve-completion-experience
The code above should make it work the way you want. |
The example in Readme is for trigger completion when there is word character before, but what you need is not trigger the completion, so you have to create your own keymap for |
This works. Thank you @DzKaki ! |
I am using the example vimrc given in README.md.
The question is, when there is no candidate for completion and the cursor is at the end of a word, tapping tab results nothing.
In my opinion, the ideal behavior for this case should be moving the cursor to next tab position, other than searching completion candidates in an empty list.
I believe this is caused by
in given vimrc configuration
How can I fix it without changing the normal behavior when the completion candidate list is not empty? Thanks!
The text was updated successfully, but these errors were encountered: