Skip to content

Commit

Permalink
feat(git): Add gist-nvim (#668)
Browse files Browse the repository at this point in the history
Co-authored-by: gacallea <[email protected]>
  • Loading branch information
andreacfromtheapp and gacallea authored Dec 5, 2023
1 parent def419e commit 6633200
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lua/astrocommunity/git/gist-nvim/README.md
Original file line number Diff line number Diff line change
@@ -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** <https://github.com/rawnly/gist.nvim>

Requirements:

- `gh` [command-line tool](https://cli.github.com) to create the Gist.
27 changes: 27 additions & 0 deletions lua/astrocommunity/git/gist-nvim/init.lua
Original file line number Diff line number Diff line change
@@ -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 = "<C-n>",
prev_file = "<C-p>",
},
},
}
end,
},
}

0 comments on commit 6633200

Please sign in to comment.