LucHermitte / lh-brackets

LH's bracketing system for vim
Other
51 stars 2 forks source link

cd_disable_default disables additional brackets #27

Closed baileywickham closed 3 years ago

baileywickham commented 3 years ago

Description cb_disable_default disables additional brackets. After adding the line below, double quote completion and paren completion are disabled even though they are not explicitly disabled. To Reproduce Steps to reproduce the behavior:

  1. Add let g:cb_disable_default = { '[': 'n', '{': 'nv' } to .vimrc
  2. Open a new file and hit (
  3. [, { completion are still enabled.

Expected behavior Hitting ( should close to ( )<++>

I am trying to disable automatically closing single quotes. From reading the docs I would expect let g:cb_disable_default = { '''': 'i'} to disable single quotes but leave everything else the same as the default behavior, am I missing something?

Version NVIM v0.5.0-718-g090551a80

LucHermitte commented 3 years ago

Indeed, there was a mismatch in the handling of g:cb_enable_default and g:cb_disable_default. Thanks for the report.

This should be fixed now.

baileywickham commented 3 years ago

Tested, it works as expected now. Thanks!