Telescope Manix Save

A telescope.nvim extension for Manix - A fast documentation searcher for Nix

Project README

telescope-manix

Neovim Lua Nix

LuaRocks

A telescope.nvim extension for Manix

A fast documentation searcher for Nix

Features

asciicast

Search for the word under the cursor

asciicast

Prerequisites

[!NOTE]

  • This plugin may work with older Neovim versions, but is only tested with the latest stable version and nightly.

Installation

Using rocks.nvim:

:Rocks install telescope-manix

Using lazy.nvim:

{
  'nvim-telescope/telescope.nvim',
  branch = '0.1.x', -- Recommended
  dependencies = {
    'nvim-lua/plenary.nvim',
    'mrcjkb/telescope-manix',
    -- ...
  },
}

Configuration

Add the following to your telescope config:

local telescope = require('telescope')
telescope.setup {
  -- opts...
}
telescope.load_extension('manix')

Usage

:Telescope manix
require('telescope-manix').search()
-- or
require('telescope').extensions.manix.manix()

Customisation

default_opts = {
  -- CLI arguments to pass to manix, see `manix --help`
  -- for example: `{'--source', 'nixpkgs_doc', '--source', 'nixpkgs_comments'}`
  -- will restrict search to nixpkgs docs and comments.
  manix_args = {},
  -- Set to true to search for the word under the cursor
  cword = false,
}
require('telescope-manix').search(default_opts)
-- or
require('telescope').extensions.manix.manix(default_opts)

Troubleshooting

If you are not seeing any search results, you may need to run manix --update-cache <query>, to initialise the cache.

Open Source Agenda is not affiliated with "Telescope Manix" Project. README Source: mrcjkb/telescope-manix
Stars
64
Open Issues
0
Last Commit
1 week ago
License

Open Source Agenda Badge

Open Source Agenda Rating