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

Autoformat tags on "Enter" #58

Open
timsofteng opened this issue Sep 10, 2020 · 2 comments
Open

Autoformat tags on "Enter" #58

timsofteng opened this issue Sep 10, 2020 · 2 comments

Comments

@timsofteng
Copy link

Hey. Can you please implement behaviour on pressing enter like on gif?

Thanks

Peek 2020-09-10 15-06

@MoxHe
Copy link

MoxHe commented Sep 11, 2020

I find a way to work around with it if you are using coc for autocompletion.
Put this in your vimrc:
inoremap <silent><expr> <cr> pumvisible() ? coc#_select_confirm() : "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"

@timsofteng
Copy link
Author

I find a way to work around with it if you are using coc for autocompletion.
Put this in your vimrc:
inoremap <silent><expr> <cr> pumvisible() ? coc#_select_confirm() : "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"

Unfortunately I'm not using coc now.

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