smartparens
smartparens copied to clipboard
Does show-smartparens-mode work with sh-mode if statements?
Does show-smartparens-mode work with sh-mode if statements, or is there something wrong with my configs?
I was expecting it to work similarly to enh-ruby-mode where I can see the matching if/ends:

But for sh-mode, this is what I get instead:

Thanks for the awesome work on this project!
Currently there is no such built-in configuration, but it probably can be implemented. Beware that there might be some glitches with some more obscure syntax.
(sp-local-pair 'sh-mode "if" "fi" :actions '(navigate))

@Fuco1 Thanks, this is great! Is there a reason why this isn't built-in?
I guess nobody made it yet and I don't use much bash.