Skip to content

ch3n9w/nvim-github-uploader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

neovim github image uploader

A simple plugin to upload clipboard image

dependency

curl, xclip(for x11), wl-clipboard (for wayland)

Only support Linux now.

install

use your favorate plugin manager, like packer.nvim. then add your configurations in setup

--- default configurations
require'nvim-github-uploader'.setup({
    token = "<your github api token>",
    repo = "<username>/<repo>",
    path = "",
    img_name = function()
        return os.date "%Y-%m-%d-%H-%M-%S.png"
    end,
    affix = "![](%s)",
    message = "upload image",
    committer_name = "uploader",
    committer_email = "xxx@xxx.com",
    notice = "notify",
    tmp_file = "/tmp/nvim-github-uploader",
    show_name = true,
    })

usage

<cmd>lua require'nvim-github-uploader'.upload_img()<cr>

or using command

:UploadClipboard

Thanks

nvim-picgo clipboard-image.nvim

About

Nvim plugin to upload clipboard image to github

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages