Skip to content

yorik1984/telescope-cheat-md.nvim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

telescope-cheat-md.nvim

🌟 Features

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

Using for markdown-type source only:

⚡️Requirements

📦 Installation

Install via your favorite package manager:

require("lazy").setup(
{
    "yorik1984/telescope-cheat-md.nvim",
    dependencies = {
        "kkharji/sqlite.lua",
        "nvim-telescope/telescope.nvim",
        "nvim-lua/plenary.nvim",
    },
    keys = {
        { "<leader>Tcf", "<CMD>Telescope cheat_md fd<CR>",      desc = "Telescope cheat_md fd" },
        { "<leader>Tcr", "<CMD>Telescope cheat_md recache<CR>", desc = "Telescope cheat_md recache" },
    },
    config = function()
        require("telescope").load_extension("cheat_md")
    end,
}
)

🚀 Usage

💻 Commands

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

⌨️ Keymaps

Use Telescope Default Mappings

Mappings Action
<CR> Confirm selection
<C-x> Go to file selection as a split
<C-v> Go to file selection as a vsplit
<C-t> Go to a file in a new tab

About

telescope-cheat.nvim for markdown-based sources

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%