Skip to content

iquiw/company-cabal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

company-cabal travis melpa

Company-mode completion back-end for haskell-cabal-mode.

Installation

Depends

Setup from MELPA

  1. Install from MELPA:

    M-x package-install RET company-cabal RET
    
  2. Add company-cabal to company-backends after loading company-mode.

    (add-to-list 'company-backends 'company-cabal)

Setup from Git

  1. Install from Git:

    git clone https://github.com/iquiw/company-cabal.git
    
  2. Add company-cabal to company-backends after loading company-mode.

    (add-to-list 'load-path "/path/to/company-cabal")
    (add-to-list 'company-backends 'company-cabal)

Feature

  • Field name completion

    If field name starts with uppercase character, the completion result is capitalized (e.g. "Cabal-Version").
    Otherwise, the completion result contains lowercase characters only (e.g. "cabal-version").
  • Section name completion

  • Some field value completion

    • build-depends (ghc-pkg list)
    • build-type
    • default-extensions, extensions, other-extensions (ghc --supported-extensions)
    • ghc-options, ghc-prof-options, ghc-shared-options (ghc --show-options if ghc version >= 7.8)
    • hs-source-dirs (current directories)
    • type

Note

  • No support for brace layout

License

Licensed under GPL 3+ license.

About

Company-mode completion back-end for haskell-cabal-mode

Resources

Stars

Watchers

Forks

Packages

No packages published