mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-28 14:45:26 +02:00
plugins/yanky: init
This commit is contained in:
parent
ce95b04d71
commit
86508ced91
3 changed files with 316 additions and 0 deletions
58
tests/test-sources/plugins/utils/yanky.nix
Normal file
58
tests/test-sources/plugins/utils/yanky.nix
Normal file
|
@ -0,0 +1,58 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.yanky.enable = true;
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.yanky = {
|
||||
enable = true;
|
||||
|
||||
ring = {
|
||||
historyLength = 100;
|
||||
storage = "sqlite";
|
||||
storagePath.__raw = "vim.fn.stdpath('data') .. '/databases/yanky.db'";
|
||||
syncWithNumberedRegisters = true;
|
||||
cancelEvent = "update";
|
||||
ignoreRegisters = ["_"];
|
||||
updateRegisterOnCycle = false;
|
||||
};
|
||||
picker = {
|
||||
select = {
|
||||
action = "put('p')";
|
||||
};
|
||||
telescope = {
|
||||
enable = true;
|
||||
useDefaultMappings = true;
|
||||
mappings = {
|
||||
i = {
|
||||
"<c-g>" = "put('p')";
|
||||
"<c-k>" = "put('P')";
|
||||
"<c-x>" = "delete()";
|
||||
"<c-r>" = "set_register(require('yanky.utils').get_default_register())";
|
||||
};
|
||||
n = {
|
||||
p = "put('p')";
|
||||
P = "put('P')";
|
||||
d = "delete()";
|
||||
r = "set_register(require('yanky.utils').get_default_register())";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
systemClipboard = {
|
||||
syncWithRing = true;
|
||||
};
|
||||
highlight = {
|
||||
onPut = true;
|
||||
onYank = true;
|
||||
timer = 500;
|
||||
};
|
||||
preserveCursorPosition = {
|
||||
enabled = true;
|
||||
};
|
||||
textobj = {
|
||||
enabled = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue