Git Product home page Git Product logo

yanker.nvim's Introduction

Yanker

GitHub tag (latest by date) License

Neovim plugin for remembering your yanks.

  1. Demo
  2. Requirements
  3. Installation
  4. License

Demo

In this demo I am yanking in different modes. I'm also yanking the same item multiple time; This plugin will de-duplicate them. With <leader>yh you can choose one of the yanked items in the history and paste.

yanker

Requirements

This library supports Neovim v0.7.0 or newer.

This plugin depends are the following libraries. Please make sure to add them as dependencies in your package manager:

Installation

Use your favourite package manager to install this library.

Lazy

{
	"arsham/yanker.nvim",
  dependencies = { "arsham/arshlib.nvim", "junegunn/fzf.vim" },
  config = true,
  -- or to provide configurations
  -- config = { history = "<leader>yh" },
}

Packer

use({
  "arsham/yanker.nvim",
  config = function()
    require("yanker").config({})
  end,
  requires = { "arsham/arshlib.nvim", "junegunn/fzf.vim" },
})

Config

By default this pluging uses <leader>yh for key mapping, However you can change it to your liking. For example:

require("yanker").config({
  history = "<leader>yh",
})

Lazy Loading

You can let your package manager to load this plugin when a key-mapping events is fired or a buffer is opened.

Packer example:

use({
  "arsham/yanker.nvim",
  config = function()
    require("yanker").config({})
  end,
  requires = { "arsham/arshlib.nvim", "junegunn/fzf.vim" },
  event = { "BufRead", "BufNewFile" },
  keys = { "<leader>yh" },
})

Lazy example:

{
  "arsham/yanker.nvim",
  dependencies = { "arsham/arshlib.nvim", "junegunn/fzf.vim" },
  config = true,
  event = { "BufRead", "BufNewFile" },
  keys = { "<leader>yh" },
}

License

Licensed under the MIT License. Check the LICENSE file for details.

yanker.nvim's People

Contributors

arsham avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

yanker.nvim's Issues

Bug while trying to use yanker.nvim remap

Description:

I am trying to import the yanker.nvim plugin. However, I am getting a bug when I try to run the keymap <leader>yh.

The plugin is imported as follows:

{ -- Imrpoved Yank
"arsham/yanker.nvim",
dependencies = { "arsham/arshlib.nvim", "junegunn/fzf.vim" },
-- config = true,
-- or to provide configurations
config = { history = "<leader>yh" },
},

When I run the keymap, I get the following error:

E5108: Error executing lua: Vim:E117: Unknown function: fzf#wrap
stack traceback:
        [C]: in function 'fzf#wrap'
        ...p/.local/share/nvim/lazy/yanker.nvim/lua/yanker/init.lua:68: in function <...p/.local/share/nvim/lazy/yanker.nvim/lua/yanker/init.lua:32>
Error: Couldn't load plugin: yanker.nvim

Additional Information:

  • My operating system is Ubuntu .
  • I am using NVIM v0.9.1.
  • I am using Lazy as a plugin manager
  • the dependencies plugins seems to be installed correctly. I run :Lazy and they show up.

Thank you for your help!

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.