nvim-telescope / telescope-cheat.nvim

WIP integration
MIT License
115 stars 6 forks source link

initial commit #1

Closed kkharji closed 3 years ago

kkharji commented 3 years ago

Partly inspired by https://github.com/RishabhRD/nvim-cheat.sh. I Wanted to test out plenary.curl a bit and get through recent changes made in our preview api.

Why not just nvim-cheat.sh, well I wanted the experience to be consistent when it comes to fuzzy finding stuff and previewing their content.

TODO:

API:

To give it a quick test, uncomment the preview part

cc @Conni2461 @elianiva

kkharji commented 3 years ago

Thanks @RishabhRD for inspiring me to do this :+1: https://github.com/RishabhRD/nvim-cheat.sh/pull/8, and btw well done :pray:

RishabhRD commented 3 years ago

hi @tami5 , I wanted to try the extension. However, I am not familiar with telescope extensions. Can you tell me how to load it and launch the fuzzy menu. Currently I have added it in my init.lua

require('telescope').load_extension('cheat')
kkharji commented 3 years ago

Whi

hi @tami5 , I wanted to try the extension. However, I am not familiar with telescope extensions. Can you tell me how to load it and launch the fuzzy menu. Currently I have added it in my init.lua

require('telescope').load_extension('cheat')

yep then it should be loaded with Telescope chea_fd. But for now I think there some work to be done. I'll flag you once I fix some stuff up

kkharji commented 3 years ago

@RishabhRD you can try it with lua require'telescope'.extensions.cheat.cheat_fd() on dev branch