diff --git a/lua/astrocommunity/git/gist-nvim/README.md b/lua/astrocommunity/git/gist-nvim/README.md new file mode 100644 index 000000000..cbc0b0e42 --- /dev/null +++ b/lua/astrocommunity/git/gist-nvim/README.md @@ -0,0 +1,12 @@ +# gist-nvim + +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. + +**Repository** + +Requirements: + +- `gh` [command-line tool](https://cli.github.com) to create the Gist. diff --git a/lua/astrocommunity/git/gist-nvim/init.lua b/lua/astrocommunity/git/gist-nvim/init.lua new file mode 100644 index 000000000..22e4b9011 --- /dev/null +++ b/lua/astrocommunity/git/gist-nvim/init.lua @@ -0,0 +1,27 @@ +return { + { + "Rawnly/gist.nvim", + dependencies = { + { + "samjwill/nvim-unception", + lazy = false, + init = function() vim.g.unception_block_while_host_edits = true end, + }, + }, + cmd = { "GistCreate", "GistCreateFromFile", "GistsList" }, + config = function() + require("gist").setup { + private = false, + clipboard = "+", + list = { + -- If there are multiple files in a gist you can scroll them, + -- with vim-like bindings n/p next previous + mappings = { + next_file = "", + prev_file = "", + }, + }, + } + end, + }, +}