Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 1.71 KB

Readme.md

File metadata and controls

59 lines (40 loc) · 1.71 KB

telescope-hoogle.nvim

telescope-hoogle is an extension for telescope.nvim that provides its users with option to browse ndmitchell/hoogle database.

Installation and Configuration

-- These are the default options.
require("telescope").setup {
  extensions = {
    hoogle = {
      render = 'default',       -- Select the preview render engine: default|treesitter
                                -- default = simple approach to render the document
                                -- treesitter = render the document by utilizing treesitter's html parser
      renders = {               -- Render specific options
        treesitter = {
          remove_wrap = false   -- Remove hoogle's own text wrapping. E.g. if you uses neovim's buffer wrapping
                                -- (autocmd User TelescopePreviewerLoaded setlocal wrap)
        }
      }
    }
  },
}

require'telescope'.load_extension'hoogle'

Requirements

Local installation of hoogle available on the path.

Optional requirements

Usage

Now supports hoogle list only.

list

:Telescope hoogle list

Runnnin hoogle list will display propmp window and once more than 3 chars are inserterd you will be presented with result from hoogle.

options

bin

Filepath for the binary hoogle.

" path can be expanded
:Telescope hoogle list bin=~/hoogle