{"id":13412164,"url":"https://github.com/askfiy/nvim-picgo","last_synced_at":"2025-03-14T18:30:21.079Z","repository":{"id":41894255,"uuid":"484914579","full_name":"askfiy/nvim-picgo","owner":"askfiy","description":"🥳🥳 A neovim plugin based on picgo-core, written in Lua. 🌲 Allows you to add pictures to various picture beds at any time, and they can be accessed from any corner of the Internet. 🎆","archived":false,"fork":false,"pushed_at":"2022-12-05T03:29:21.000Z","size":687,"stargazers_count":56,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-07-31T20:49:55.326Z","etag":null,"topics":["image","lua","neovim","plugin"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/askfiy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-24T03:27:55.000Z","updated_at":"2024-06-11T17:07:08.000Z","dependencies_parsed_at":"2023-01-23T21:47:34.416Z","dependency_job_id":null,"html_url":"https://github.com/askfiy/nvim-picgo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/askfiy%2Fnvim-picgo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/askfiy%2Fnvim-picgo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/askfiy%2Fnvim-picgo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/askfiy%2Fnvim-picgo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/askfiy","download_url":"https://codeload.github.com/askfiy/nvim-picgo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243624989,"owners_count":20321208,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["image","lua","neovim","plugin"],"created_at":"2024-07-30T20:01:21.685Z","updated_at":"2025-03-14T18:30:21.074Z","avatar_url":"https://github.com/askfiy.png","language":"Lua","readme":"                                         ____  _       ____\n                                        |  _ \\(_) ___ / ___| ___\n                                        | |_) | |/ __| |  _ / _ \\\n                                        |  __/| | (__| |_| | (_) |\n                                        |_|   |_|\\___|\\____|\\___/\n\n                                      · picgo plugin for neovim ·\n\n![](https://img.shields.io/badge/Perfect-neovim%20picgo-green)\n\n**nvim-picgo** is a picture uploading tool based on Lua language. You can quickly upload images to various image beds through it, and it will also generate links in markdown format 🔗. and store it in the clipboard.\n\nIn the coc ecosystem, there is a plugin called **[coc-picgo](https://github.com/PLDaily/coc-picgo)** that does the same thing.\nThe **[coc-picgo](https://github.com/PLDaily/coc-picgo)** plugin is really enviable for those who use nvim's built-in LSP, because we don't need coc，so I created this project and hope it will help you.\n\n## Features\n\n- Written in pure Lua, less than 300 lines of code\n- No default key bindings, I won't take up your precious keys\n- Quickly upload disk files or clipboard images to the image bed, allowing you to access your images anywhere on the Internet\n\n## demo\n\nUpload an image from the clipboard:\n\n![](./demo/demo1.gif)\n\nUpload an image from the file system:\n\n![](./demo/demo2.gif)\n\n## Dependencies\n\nI recommend you to use **neovim-0.7**.\n\nBesides that, you need to download **[picgo-core](https://github.com/PicGo/PicGo-Core)**, which is a command line tool.\n\n```\n$ npm install picgo -g\n```\n\nNext, you need to install **[xclip](https://github.com/astrand/xclip)**.\n\n## Configure picgo image bed\n\nFirst of all, you need to manually fill in your image bed configuration, and enter:\n\n\u003e Note, not in neovim's cmd mode\n\n```\n$ picgo set uploader\n? Choose a(n) uploader (Use arrow keys)\n  smms\n❯ tcyun\n  github\n  qiniu\n  imgur\n  aliyun\n  upyun\n(Move up and down to reveal more choices)\n```\n\nOr you can also configure manually:\n\n- Linux and Mac：`~/.config/.picgo/config.json`\n- Windows：`C:\\Users\\youername\\.picgo\\config.json`\n\nBelow is my picgo config file:\n\n```\n$ cat $HOME/.picgo/config.json\n\n{\n  \"picBed\": {\n    \"uploader\": \"tcyun\",\n    \"current\": \"tcyun\",\n    \"tcyun\": {\n      \"secretId\": \"..\",\n      \"secretKey\": \"..\",\n      \"bucket\": \"images-1302522496\",\n      \"appId\": \"1302522496\",\n      \"area\": \"ap-nanjing\",\n      \"path\": \"img/\",\n      \"customUrl\": \"\",\n      \"version\": \"v5\"\n    }\n  },\n  \"picgoPlugins\": {}\n}\n```\n\n## Using plugins\n\nIt is recommended to use Packer to manage **nvim-picgo**:\n\n```\nuse {\n    \"askfiy/nvim-picgo\",\n    config = function()\n        -- it doesn't require you to do any configuration\n        require(\"nvim-picgo\").setup()\n    end\n    }\n```\n\nDefault configuration items:\n\n```\n{\n    -- method to informe\n    -- 1. notify\n    -- 2. echo\n    notice = \"notify\",\n    -- Whether the generated markdown link saves the upload name of the image\n    -- boolean\n    image_name = false,\n    -- debug mode\n    debug = false,\n}\n```\n\n## plugin command\n\nviml：\n\n```\n:UploadClipboard\u003ccr\u003e\n:UploadImagefile\u003ccr\u003e\n```\n\nlua：\n\n```\n\u003ccmd\u003elua require'nvim-picgo'.upload_clipboard()\u003ccr\u003e\n\u003ccmd\u003elua require'nvim-picgo'.upload_imagefile()\u003ccr\u003e\n```\n\n## related resources\n\n- [picgo-core](https://github.com/PicGo/PicGo-Core)\n- [coc-picgo](https://github.com/PLDaily/coc-picgo)\n- [picgo-doc](https://picgo.github.io/PicGo-Doc/en/guide/)\n","funding_links":[],"categories":["Media","Lua",":package: Project using PicGo-Core"],"sub_categories":["Cursorline"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faskfiy%2Fnvim-picgo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faskfiy%2Fnvim-picgo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faskfiy%2Fnvim-picgo/lists"}