-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creating a gist from selection is not working as expected. #15
Comments
Hey thanks for reporting the problem. I cannot replicate it. https://gist.github.com/Rawnly/72ce1dfb9a0d2ece2f77f200036dc002 |
This might be a bug in the setup function, i'll investigate further |
@corei8 i cannot reproduce this issue at all, I tried different configurations and all works as expected Via the {
"Rawnly/gist.nvim",
cmd = { "GistCreate", "GistCreateFromFile", "GistsList" },
opts = {
clipboard = "+",
private = false,
},
}, Via the {
"Rawnly/gist.nvim",
cmd = { "GistCreate", "GistCreateFromFile", "GistsList" },
config = function()
require("gist").setup {
clipboard = "+",
private = false,
}
end,
}, Via the {
"Rawnly/gist.nvim",
cmd = { "GistCreate", "GistCreateFromFile", "GistsList" },
config = {
clipboard = "+",
private = false,
},
}, can you double-check that the plugin is up-to-date and maybe run a |
@rawnly I can indeed produce the desired result with In either case, the option to make the gist private automatically is working, the opposite action (according to the way I think it should work) is not working, i.e. setting I have also noticed a bit of screen tearing after successfully creating a gist with This screen tearing goes away after a repaint (e.g., toggling NeoTree). Additionally, I think the following improvements could be made (and I would be willing to create a pull request if I find the time):
I can make separate issues for all of these if you wish. This is an very good plugin and I will be making heavy use of it for sure. |
Thanks for your feedback! I like your suggestions. maybe we can deprecate the private=true option and create a new one that defines the default behaviour. about the repaint, i noticed that too but I'm quite new to neovim plugin development and I didn’t knew if maybe it was something about my config. Maybe a possibile solution could be forcing repaint? |
This is my configuration, using lazy.nvim:
And I use which-key to bind the commands to some keybindings:
I am having two issues right now:
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.
The text was updated successfully, but these errors were encountered: