Skip to content

Quickly insert markdown formatted image links with Neovim.

License

Notifications You must be signed in to change notification settings

junaydb/md-img-insert.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

md-img-insert-ss

md-img-insert.nvim: Quickly insert markdown formatted image links with Neovim.

  • Fetches image links from an endpoint (currently just works with ImageKit)
  • Image paths are displayed in a floating window at the cursor
  • Select an image (or multiple in visual mode) to insert it in markdown syntax
  • Fetch results are cached and can be refreshed with r

Install

With lazy.nvim:

{
  'junaydb/md-img-insert.nvim',
  dependencies = {
    'nvim-lua/plenary.nvim',
  },
  ft = 'markdown',
  opts = {},
}

Setup

This plugin currently only works with ImageKit.

Set the following environment variables:

  • MD_IMG_INSERT_BASE_URL: Your ImageKit endpoint's base URL
  • MD_IMG_INSERT_API_KEY: Your ImageKit private API key

Usage

  • Open picker window: <Leader>mi
    • Multiple entries can be inserted at once using visual mode.
  • Refresh cache: r
    • This keymap is local to the picker.

About

Quickly insert markdown formatted image links with Neovim.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages