Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eagletmt/unite-haddock
unite.vim source for haddock
https://github.com/eagletmt/unite-haddock
Last synced: 22 days ago
JSON representation
unite.vim source for haddock
- Host: GitHub
- URL: https://github.com/eagletmt/unite-haddock
- Owner: eagletmt
- Created: 2011-12-17T10:59:46.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2014-05-10T12:53:28.000Z (over 10 years ago)
- Last Synced: 2024-12-01T07:41:22.326Z (25 days ago)
- Language: VimL
- Homepage:
- Size: 235 KB
- Stars: 12
- Watchers: 7
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# unite-haddock
[unite.vim](https://github.com/Shougo/unite.vim) source for haddock and hoogle
## Usage
`:Unite haddock` shows all installed modules.`:Unite hoogle` shows the result of hoogle command.
You have to install the hoogle command by `cabal install hoogle` to enable this source.`:Unite hoogle:exact` shows the result of hoogle _exact_ search.
It corresponds to passing `--exact` argument to hoogle.## Actions
### browse\_local (default)
Opens local haddock.- Note: To generate local documentations, you must install packages with `--enable-documentation`, or edit $HOME/.cabal/config: `documentation: True`.
### browse\_remote
Opens remote haddock (Hackage).- Note: If you'd like to make this action default, add `call unite#custom_default_action('haddock', 'browse_remote')` to your vimrc. See `:help unite#custom_default_action()` for more detail.
### preview (hoogle only)
Shows the information in the preview window.- Note: You can preview the informatin by pressing `p` key on a candidate.
## Global Variables
### g:unite\_source\_hoogle\_max\_candidates
The maximal number of candidates of hoogle.Default: 200
### g:unite\_source\_haddock\_browser
The browser used to view documentations.Normally, you don't have to set this variable.
If you're using a minor DE (e.g. awesome, XMonad) and `xdg-open` fails to recognize local file URIs correctly, set this variable manually in your `~/.vimrc`.~~~vim
let g:unite_source_haddock_browser = 'firefox'
~~~