gist.nvim is a Neovim plugin that allows you to create a GitHub Gist from the current file.
The plugin uses the gh command-line tool to create the Gist and provides a simple interface for specifying the Gist's description and privacy settings.
To use gist.nvim, you need to have Neovim installed on your system.
You also need to have the gh command-line tool installed and configured with your GitHub account.
Once you have Neovim and gh installed, you can install gist.nvim using your favorite plugin manager.
For example, if you are using packer, you can add the following line to your init.vim file:
use "rawnly/gist.nvim"
To create a Gist from the current file, use the :CreateGist command in Neovim.
The plugin will prompt you for a description and whether the Gist should be private or public.
:CreateGistAfter you enter the description and privacy settings, the plugin will create the Gist using the gh command-line tool and copy the Gist's URL to the system clipboard. You can then paste the URL into a browser to view the Gist.
gist.nvim provides a few configuration options that you can set as global params:
g:gist_is_private: All the gists will be private and you won't be prompted again. Defaults tofalseg:gist_clipboard: The registry to use for copying the Gist URL. Defaults to"+"
gist.nvim is released under MIT License. See LICENSE for details.
If you find a bug or would like to contribute to gist.nvim, please open an issue or a pull request.
All contributions are welcome and appreciated!