Skip to content

Commit

Permalink
feat(editing-support): add nvim-neoclip plugin (#450)
Browse files Browse the repository at this point in the history
* feat(editing-support): add nvim-neoclip

* forgot stylua formatting

* incorporate suggestions

* fix wrong category

---------

Co-authored-by: Tony Fischer (tku137) <[email protected]>
  • Loading branch information
tku137 and Tony Fischer (tku137) authored Jul 17, 2023
1 parent 22ef63c commit 4ebda64
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lua/astrocommunity/register/nvim-neoclip-lua/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# nvim-neoclip

`neoclip` is a clipboard manager for neovim inspired by for example [`clipmenu`](https://github.com/cdown/clipmenu).
It records everything that gets yanked in your vim session (up to a limit which is by default 1000 entries but can be configured).
You can then select an entry in the history using [`telescope`](https://github.com/nvim-telescope/telescope.nvim) or [`fzf-lua`](https://github.com/ibhagwan/fzf-lua) which then gets populated in a register of your choice.

**Repository:** <https://github.com/AckslD/nvim-neoclip.lua>

14 changes: 14 additions & 0 deletions lua/astrocommunity/register/nvim-neoclip-lua/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
return {
"AckslD/nvim-neoclip.lua",
event = { "User AstroFile", "InsertEnter" },
dependencies = {
{ "nvim-telescope/telescope.nvim" },
},
config = function(_, opts)
require("neoclip").setup(opts)
require("telescope").load_extension "neoclip"
end,
keys = {
{ "<leader>fy", "<cmd>Telescope neoclip<cr>", desc = "Find yanks (neoclip)" },
},
}

0 comments on commit 4ebda64

Please sign in to comment.