neoclide / coc-pairs

Basic auto pairs extension of coc.nvim
297 stars 14 forks source link

Pair disabled character when there isn't a space before it #75

Closed ghost closed 3 years ago

ghost commented 3 years ago

Description

I have disabled in my init.vim the < char when the filetype is html, typescript or typescriptreact. For doing that I have followed the documentation.

There it is the line where I disable the char:

autocmd FileType html, typescript, typescriptreact let b:coc_pairs_disabled = ['<']

The issue is that whenever the char < isn't preceded by a space, coc-pairs just pairs it.

Issue's video

issue's gif

ghost commented 3 years ago

Solution

The error was in the configuration I think, I removed the spaces between filetypes in my config and now everything works fine