From 4ad660ff6baa7c63a5338b0e9795e297bbd6baa8 Mon Sep 17 00:00:00 2001 From: Salar Rahmanian Date: Tue, 3 Sep 2024 00:46:11 -0700 Subject: [PATCH] neoclip update --- lua/plugins/neoclip.lua | 67 +++++------------------------------------ 1 file changed, 8 insertions(+), 59 deletions(-) diff --git a/lua/plugins/neoclip.lua b/lua/plugins/neoclip.lua index 80e2fed..74144ef 100644 --- a/lua/plugins/neoclip.lua +++ b/lua/plugins/neoclip.lua @@ -1,63 +1,12 @@ return { "AckslD/nvim-neoclip.lua", dependencies = { "kkharji/sqlite.lua" }, - keys = { - { "sp", "Telescope neoclip", desc = "Neoclip" }, - }, - opts = { - history = 1000, - enable_persistent_history = true, - length_limit = 1048576, - continuous_sync = false, - db_path = vim.fn.stdpath("data") .. "~/.config/databases/neoclip.sqlite3", - filter = nil, - preview = true, - prompt = nil, - default_register = '"', - default_register_macros = "q", - enable_macro_history = true, - content_spec_column = false, - disable_keycodes_parsing = false, - on_select = { - move_to_front = false, - close_telescope = true, - }, - on_paste = { - set_reg = false, - move_to_front = false, - close_telescope = true, - }, - on_replay = { - set_reg = false, - move_to_front = false, - close_telescope = true, - }, - on_custom_action = { - close_telescope = true, - }, - keys = { - telescope = { - i = { - select = "", - paste = "", - paste_behind = "", - replay = "", -- replay a macro - delete = "", -- delete an entry - edit = "", -- edit an entry - custom = {}, - }, - n = { - select = "", - paste = "p", - --- It is possible to map to more than one key. - -- paste = { 'p', '' }, - paste_behind = "P", - replay = "q", - delete = "d", - edit = "e", - custom = {}, - }, - }, - }, - }, + config = function() + require("neoclip").setup({ + history = 1000, + enable_persistent_history = true, + db_path = vim.fn.stdpath("data") .. "~/.config/databases/neoclip.sqlite3", + default_register = "+", + }) + end, } -- 2.46.1