An attempt to recreate cheat.sh with lua, neovim, sqlite.lua and telescope.nvim.
Using for markdown-type source only:
- Neovim 0.10+
- telescope.nvim
- sqlite.lua
- plenary.nvim
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,
}
):Telescope cheat_md fd
:Telescope cheat_md recache " cheat will be auto cached with new updates on sourcesUse 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 |
