neoclide / coc-pairs

Basic auto pairs extension of coc.nvim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Auto closing % character

joshmlamb opened this issue · comments

Hello,

Thank you for creating and maintaining this plugin, it's great.

I was wondering if its possible to auto-close characters such as %. The main usage for this would be inside template languages such as twig and liquid where the following syntax is used a lot: {% set var = value %}

I have tried adding this to my coc-settings.json file, but it doesn't appear to work.
"pairs.enableCharacters": ["(", "[", "{", "<", "'", "\"", "`", "%"]

I would appreciate any help you can give, thank you.

I realise that automatically closing the % character would not be smart. Instead what I need is for the {% to automatically close which sounds out-of-scope for the project.