Skip to content
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

<cr> conflicts with coc #74

Closed
hrai opened this issue May 9, 2020 · 3 comments
Closed

<cr> conflicts with coc #74

hrai opened this issue May 9, 2020 · 3 comments

Comments

@hrai
Copy link

hrai commented May 9, 2020

I've been using this plugin for a long time. But I recently started using coc. The <cr> functionality of coc breaks if I allow bullets plugin as bullets maps the key.

Is it possible to enable this plugin while also not breaking coc?

@dkarter
Copy link
Member

dkarter commented May 9, 2020

Hey @hrai ! I am also using Coc and have been for a long time with no issues. What specifically breaks? Can you be more specific? maybe provide some examples / minimal vimrc to reproduce the issue?

@hrai
Copy link
Author

hrai commented May 10, 2020

I have the setting to select the first item by default for coc.

Let's say I type tart and the selection list pops up as below. When I hit <cr>, I get a linebreak instead of the selected item.

Autocomplete options list

image

After hitting <cr>

image

<cr> key mapping

image

@dkarter
Copy link
Member

dkarter commented May 10, 2020

I'm not sure how your configuration is different than mine. When I do it, I have to select the item I want for it to change the word (I do it using <C-p> and <C-n>).

When I press enter after selecting a completion, the word is already inserted into the buffer, so enter has nothing to do with the selection, it just inserts a new line as expected.

2020-05-10 18 27 29

Try removing bullets.vim from your plugins and try again, it should not change how auto completion works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants