-
-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: gacallea <[email protected]>
- Loading branch information
1 parent
def419e
commit 6633200
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
}, | ||
} |