Skip to content

Commit 709c97f

Browse files
authored
Merge pull request #127 from sudoAlphaX/activate-nvim-example
add example file for activate.nvim
2 parents 70e56b2 + 6996282 commit 709c97f

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

setup.lua.example

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
return {
2+
"AckslD/nvim-neoclip.lua",
3+
dependencies = {
4+
-- Uncomment for persistent history between sessions
5+
-- { "kkharji/sqlite.lua", module = "sqlite" },
6+
{ "nvim-telescope/telescope.nvim" },
7+
-- {'ibhagwan/fzf-lua'},
8+
},
9+
config = function()
10+
require("neoclip").setup({
11+
-- The max number of entries to store (default 1000).
12+
history = 1000,
13+
-- If set to true the history is stored on VimLeavePre using sqlite.lua and lazy loaded when querying.
14+
enable_persistent_history = false,
15+
-- If set to true, the runtime history is synced with the persistent storage everytime it's changed or queried.
16+
-- If you often use multiple sessions in parallel and want the history synced you might want to enable this.
17+
continuous_sync = false,
18+
keys = {
19+
telescope = {
20+
i = {
21+
select = "<cr>",
22+
paste = "<c-p>",
23+
paste_behind = "<c-k>",
24+
replay = "<c-q>", -- replay a macro
25+
delete = "<c-d>", -- delete an entry
26+
edit = "<c-e>", -- edit an entry
27+
custom = {},
28+
},
29+
n = {
30+
select = "<cr>",
31+
paste = "p",
32+
--- It is possible to map to more than one key.
33+
-- paste = { 'p', '<c-p>' },
34+
paste_behind = "P",
35+
replay = "q",
36+
delete = "d",
37+
edit = "e",
38+
custom = {},
39+
},
40+
},
41+
fzf = {
42+
select = "default",
43+
paste = "ctrl-p",
44+
paste_behind = "ctrl-k",
45+
custom = {},
46+
},
47+
},
48+
})
49+
end,
50+
}

0 commit comments

Comments
 (0)