Query Cheat.sh directly within Neovim.
This is my first crack at writing a plugin mostly for my own use with a nightly build of Neovim. Your mileage may vary.
You can install this with your plugin manager of choice, I use vim-plug.
Plug 'crgwilson/cheat.nvim'
This plugin provides one command :Cheat
which will open a floating window accepting
an arbitrary string which will be sent to cheat.sh
along with the filetype
of your current active buffer.
After entering your question and pressing the enter key another window will popup (hopefully) containing your answer.
Keybind | Description |
---|---|
escape |
Close the currently active floating window |
enter |
Execute query |
- Make keybinds configurable
- Optionally open query windows as splits rather than floating windows