• Stars
    star
    101
  • Rank 327,129 (Top 7 %)
  • Language
    Lua
  • License
    MIT License
  • Created over 3 years ago
  • Updated 10 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

WIP integration

telescope-cheat.nvim

An attempt to recreate cheat.sh with lua, neovim, sqlite.lua, and telescope.nvim.

Installation

Install via your favorite package manager:

packer.nvim

use {
    "yorik1984/telescope-cheat.nvim",
    requires = {
        "kkharji/sqlite.lua",
        "nvim-telescope/telescope.nvim"
    }
}

require("telescope").load_extension("cheat")

lazy.nvim

require("lazy").setup({
    "yorik1984/telescope-cheat.nvim",
    dependencies = {
        "kkharji/sqlite.lua",
        "nvim-telescope/telescope.nvim"
    }
})

require("telescope").load_extension("cheat")

Usage

:Telescope cheat fd
:Telescope cheat recache " cheat will be auto cached with new updates on sources

Contribution

New sources can be defined in ./lua/telescope/_extensions/cheat/sources.lua.

Example:

M[2] = {
  name = "learnxinyminutes",
  uri = "https://github.com/adambard/learnxinyminutes-docs",
  root = "",
  depth = 1,
  pattern = ".*%.html%.markdown",
  add_dirs = false,
  ft = "markdown",
  parse = function(path)
    local content = p.readlines(path)
    if content[1]:find('---', 1, true) then
      local minus_count = 0
      while minus_count < 2 do
        if content[1]:find('---', 1, true) then minus_count = minus_count + 1 end
        table.remove(content, 1)
      end
    end
    while content[1] == '' do
      table.remove(content, 1)
    end

    return table.concat(content, '\n')
  end,
  get_ns_keyword = function(path)
    return "lang", path:match('.*/([^./]+).*')
  end
}

More Repositories

1

telescope.nvim

Find, Filter, Preview, Pick. All lua, all the time.
Lua
11,260
star
2

telescope-file-browser.nvim

File Browser extension for telescope.nvim
Lua
1,497
star
3

telescope-fzf-native.nvim

FZF sorter for telescope written in c
C
1,236
star
4

telescope-frecency.nvim

A telescope.nvim extension that offers intelligent prioritization when selecting files from your editing history.
Lua
654
star
5

telescope-project.nvim

Lua
548
star
6

telescope-live-grep-args.nvim

Live grep with args
Lua
521
star
7

telescope-media-files.nvim

Telescope extension to preview media files using Ueberzug.
Lua
415
star
8

telescope-ui-select.nvim

Lua
404
star
9

telescope-dap.nvim

Integration for nvim-dap with telescope.nvim
Lua
280
star
10

telescope-github.nvim

Integration with github cli
Lua
209
star
11

telescope-packer.nvim

A Telescope extension that provides extra functionality for Packer.nvim
Lua
179
star
12

telescope-symbols.nvim

Lua
170
star
13

telescope-fzy-native.nvim

FZY style sorter that is compiled
Lua
162
star
14

telescope-smart-history.nvim

A history implementation that memorizes prompt input for a specific context
Lua
108
star
15

telescope-bibtex.nvim

A telescope.nvim extension to search and paste bibtex entries into your TeX files.
Lua
101
star
16

telescope-arecibo.nvim

A Neovim Telescope extension for searching the web!
Lua
87
star
17

telescope-hop.nvim

(Teles-)Hopping to the moon.
Lua
87
star
18

telescope-fzf-writer.nvim

Incorporating some fzf concepts with plenary jobs and telescope
Lua
71
star
19

telescope-rs.nvim

Experimental features for telescope in RUST? The safest telescope known to HUMANITY
45
star
20

telescope-vimspector.nvim

Integration for vimspector with telescope.nvim
Lua
38
star
21

telescope-z.nvim

Z integration for Telescope
Lua
35
star
22

telescope-node-modules.nvim

An extension that provides its users with node packages under node_modules directory
Lua
31
star
23

telescope-ghq.nvim

Lua
24
star
24

telescope-snippets.nvim

snippets.nvim integration
Lua
13
star