iquiw / company-ghc

Company-mode completion back-end for haskell-mode via ghc-mod
125 stars 6 forks source link

How I can stop company-ghc to inject close parenthesis on import module keyword? #34

Closed ryukinix closed 5 years ago

ryukinix commented 7 years ago

After press once tab I got: image

If I try press tab again, again and again I got: image

Is a easy way to not insert the closing parenthesis? Where on the source this is done?

ryukinix commented 7 years ago

This is bad for me mainly because I use smartparens, so always when I open a parenthesis on module import it is closed automatically... Then I press tab and company injects a new closing parenthesis...

iquiw commented 7 years ago

I confirmed this happens without company-ghc (below with company-dabbrev-code). I saw the same even in c-mode. image

Maybe related. https://github.com/Fuco1/smartparens/issues/445

ryukinix commented 7 years ago

What hell... Well, thanks for found the reason! Really weird.

ryukinix commented 5 years ago

Closed due lack of activity (> year 1).