Git Product home page Git Product logo

picgo.nvim's Introduction

picgo.nvim

Introduction

This plugin can upload image fro clipboard or from file system (still developing). Although there are similar plugins like nvim-picgo or coc-picgo, there are either not campatible with latest picgo or already lost maintainance.

For now, this plugin only support linux, both wayland and x11.

Dependencies

Installation

use dein:

call dein#add('Corona09/picgo.nvim')

Usage

Upload Image from Clipboard

UploadImageFromClipboard
" or
nnoremap YOUR_KEY :UploadImageFromClipboard <CR>

After image was uploaded, you can also press p to insert its url.

Configuration

g:picgo#image_code_template
" picgo#image_cdoe_template is an array of string
" the plugin will replace ${url} with image url returned by picgo
" the default value is as [ '![]( ${url} )' ]
let g:picgo#image_code_template = [ '![]( ${url} )' ]
g:picgo#insert_image_code
" if you do not want to insert code after uploading
" you can set g:picgo#insert_image_code to 0
" default value : 0
let g:picgo#insert_image_code = 1
g:pigco#show_warning ```vim " set to 0 to disable warning for picgo/xclip/wl-clipboard " default value: 1 let g:picgo#show_warning = 0 ```

Known issues

  • Cannot upload from clipboard while copy image from nautilus

TODO

  • Upload from file system.
  • Optimize action of inserting image code.
  • Add doc.
  • Multiple config.

picgo.nvim's People

Contributors

iseri27 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.