neoclide / coc-vetur

Vue language server extension for coc.nvim
219 stars 7 forks source link

Extra spacing before closing tabs when using snippets #38

Closed saeedahadian closed 4 years ago

saeedahadian commented 4 years ago

Hi everyone, I use Vim 8 and installed coc-vetur successfully. The problem is that when I use vetur snippets, there is an extra amount of space before closing tags that don't seem right.

spacing-before-format

Even when I use :Format command to format my code, things get worse.

spacing-after-format

I checked out the configurations but didn't find anything that might be related to this issue.

chemzqm commented 4 years ago

Try minimal vimrc.

saeedahadian commented 4 years ago

Just in case somebody had the same problem, I managed to fix it by changing the shortcut for expanding snippets from tab to C-l as is mentioned in coc-snippets configuration. Seems hitting tab was creating a tab space before each line.

chemzqm commented 4 years ago

@saeedahadian it's because you have broken key-mapping of <tab>