Open
Description
This is my configuration, using lazy.nvim:
{
"Rawnly/gist.nvim",
cmd = { "GistCreate", "GistCreateFromFile", "GistsList" },
config = function ()
require("gist").setup({
private = false, -- All gists will be private, you won't be prompted again
clipboard = "+", -- The registry to use for copying the Gist URL
list = {
mappings = {
next_file = "<C-n>",
prev_file = "<C-p>"
}
}
})
end,
requires = {
"samjwill/nvim-unception",
lazy = true,
event = "VeryLazy",
init = function() vim.g.unception_block_while_host_edits = true end
},
},
And I use which-key to bind the commands to some keybindings:
g = {
name = " Git",
i = {
name = " Gist",
s = {"<cmd>GistCreate<cr>", "Gist from Selection", mode="v"},
f = {"<cmd>GistCreateFromFile<cr>", "Gist from File", mode="n"},
l = {"<cmd>GistsList<cr>", "Gist List", mode="n"},
},
},
I am having two issues right now:
- The first is that I cannot make a gist from selection, only as the entire file.
- I cannot make the gist be persistently public, despite
private = false
in the configuration.
This make the plugin more of a burden now, since I only want to create public gists, and I never (or rarely) want to save the entire file as a gist.