Skip to content

Folding for individual cabal fields in Cabal files #65

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
UnkindPartition opened this issue Sep 29, 2013 · 1 comment
Open

Folding for individual cabal fields in Cabal files #65

UnkindPartition opened this issue Sep 29, 2013 · 1 comment

Comments

@UnkindPartition
Copy link
Contributor

Would it be possible to add folds for individual cabal fields? Some of them can get rather long, see e.g. https://github.com/haskell-suite/haskell-names/blob/master/haskell-names.cabal

@dag
Copy link
Owner

dag commented Sep 29, 2013

Should be quite doable. In the vim-cabal part of the rewrite (#45) I'm already defining field values as syntax regions across lines, to make sure it's not confused by things like colons in description, say, and in theory in that implementation it should be a simple matter of setting the fold option on the region. However, syntax folding is slow and expensive (likely the primary reason people are reporting sluggishness from vim2hs) so I want to avoid that in the rewrite and use expression folding instead, but it shouldn't be too hard with that either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants