Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/luc-tielen/telescope_hoogle

Hoogle search integration for Telescope
https://github.com/luc-tielen/telescope_hoogle

haskell lua neovim neovim-plugin

Last synced: about 2 months ago
JSON representation

Hoogle search integration for Telescope

Awesome Lists containing this project

README

        

# telescope_hoogle

A telescope plugin for Hoogle.

## Keybindings

- ``: opens selected entry in the browser:

![](./hoogle_browser.gif)

- ``: copies selected entry to clipboard:

![](./hoogle_paste.gif)

## Installation

1. Install [Telescope](https://github.com/nvim-telescope/telescope.nvim)
1. Install a recent Hoogle (needs to support `--json` flag)
2. Run `hoogle generate`
3. Install this plugin (for example: `paq 'luc-tielen/telescope_hoogle'`)
4. Add the following Lua snippet to your nvim config:

```lua
local telescope = require('telescope')
telescope.setup {
-- opts...
}
telescope.load_extension('hoogle')
```

## Development

```bash
$ git clone [email protected]:luc-tielen/telescope_hoogle.git
$ cd telescope_hoogle
$ nvim --cmd "set rtp+=$(pwd)"
```