neoclide / coc-pairs

Basic auto pairs extension of coc.nvim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

opened this issue · comments

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

Solution

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