denstiny / picgo-nvim

Help to upload pictures to the bed

Home Page:https://denstiny.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

图床api发生变化,等周末重新维护

picgo-nvim

这是我的第一个插件,他可以帮助上传图片到图床

chinese | english

安装

使用你喜欢的插件管理工具

  • packer
use 'denstiny/picgo-nvim'
  • plugin
plug "denstiny/picgo-nvim"

依赖

依赖 必须
python yes
requests yes
pynvim yes

配置

let g:picgo_start = v:true
let g:picgo_server = {'遇见图床':{'url':'https://www.hualigs.cn/','token':'eaa4eb11884f7a60e03f5c2eab3161c8'}}
" 建议使用自己的 token
nmap <silent><A-p> :call UpdateImageX()<cr> " 上传剪切板图片
vmap <silent><A-o> :call UpdateImageR()<cr> " 上传指定位置图片
" UpdateImagePath path 指定路径

演示

2022-02-28_12-57-39.mp4

常见问题

  • 插件体验不佳
  • 我是vimscript新手,有任何问题,或者好的建议欢迎提交
  • 是否支持其他图床
  • 正在积极开发,但是我时间有限,如果你可以贡献自己的python脚本,欢迎合并

About

Help to upload pictures to the bed

https://denstiny.github.io/

License:MIT License


Languages

Language:Python 51.8%Language:Vim Script 48.2%