Skip to content

psiska/telescope-hoogle.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

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

About

Hoogle search via telescope

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages