alexherbo2 / auto-pairs.kak

Auto-pairing of characters for Kakoune
https://kakoune.org
77 stars 18 forks source link

Right way to override auto_pairs option? #24

Closed vbauerster closed 5 years ago

vbauerster commented 5 years ago

What is the right way to override global auto_pairs option for specific file type? For example, I've tried following in order to remove <> pair:

hook global WinSetOption "filetype=go" %{
    set window auto_pairs '(' ')' '{' '}' '[' ']' '"' '"' '''' '''' '`' '`'
}

Echoing, shows that there is no <> pair, but < keeps auto paired with >.

alexherbo2 commented 5 years ago

I need to add a hook on auto_pairs option.

Thanks for the catch.