From 4ebda647617c4fac82250f6412d4fbec173b12e2 Mon Sep 17 00:00:00 2001 From: Tony Fischer Date: Mon, 17 Jul 2023 16:36:49 +0200 Subject: [PATCH] feat(editing-support): add nvim-neoclip plugin (#450) * feat(editing-support): add nvim-neoclip * forgot stylua formatting * incorporate suggestions * fix wrong category --------- Co-authored-by: Tony Fischer (tku137) --- .../register/nvim-neoclip-lua/README.md | 8 ++++++++ .../register/nvim-neoclip-lua/init.lua | 14 ++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 lua/astrocommunity/register/nvim-neoclip-lua/README.md create mode 100644 lua/astrocommunity/register/nvim-neoclip-lua/init.lua diff --git a/lua/astrocommunity/register/nvim-neoclip-lua/README.md b/lua/astrocommunity/register/nvim-neoclip-lua/README.md new file mode 100644 index 000000000..7df4f0160 --- /dev/null +++ b/lua/astrocommunity/register/nvim-neoclip-lua/README.md @@ -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:** + diff --git a/lua/astrocommunity/register/nvim-neoclip-lua/init.lua b/lua/astrocommunity/register/nvim-neoclip-lua/init.lua new file mode 100644 index 000000000..08807bafb --- /dev/null +++ b/lua/astrocommunity/register/nvim-neoclip-lua/init.lua @@ -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 = { + { "fy", "Telescope neoclip", desc = "Find yanks (neoclip)" }, + }, +}