mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-14 03:04:34 +02:00
plugins/neoclip: init
This commit is contained in:
parent
e054fe2bc0
commit
f6e32ac3cf
3 changed files with 361 additions and 0 deletions
117
tests/test-sources/plugins/utils/neoclip.nix
Normal file
117
tests/test-sources/plugins/utils/neoclip.nix
Normal file
|
@ -0,0 +1,117 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.neoclip.enable = true;
|
||||
};
|
||||
|
||||
with-sqlite = {
|
||||
plugins.neoclip = {
|
||||
enable = true;
|
||||
|
||||
# This triggers the addition of `pkgs.vimPlugins.sqlite-lua` to `extraPlugins`
|
||||
settings.enable_persistent_history = true;
|
||||
};
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.neoclip = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
filter = null;
|
||||
preview = true;
|
||||
default_register = "\"";
|
||||
content_spec_column = false;
|
||||
on_paste.set_reg = false;
|
||||
keys = {
|
||||
telescope = {
|
||||
i = {
|
||||
select = "<cr>";
|
||||
paste = "<c-l>";
|
||||
paste_behind = "<c-h>";
|
||||
custom = { };
|
||||
};
|
||||
n = {
|
||||
select = "<cr>";
|
||||
paste = "p";
|
||||
paste_behind = "P";
|
||||
custom = { };
|
||||
};
|
||||
};
|
||||
fzf = {
|
||||
select = "default";
|
||||
paste = "ctrl-l";
|
||||
paste_behind = "ctrl-h";
|
||||
custom = { };
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins.neoclip = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
history = 1000;
|
||||
enable_persistent_history = false;
|
||||
length_limit = 1048576;
|
||||
continuous_sync = false;
|
||||
db_path.__raw = "vim.fn.stdpath('data') .. '/databases/neoclip.sqlite3'";
|
||||
filter = null;
|
||||
preview = true;
|
||||
prompt = null;
|
||||
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 = "<cr>";
|
||||
paste = "<c-p>";
|
||||
paste_behind = "<c-k>";
|
||||
replay = "<c-q>";
|
||||
delete = "<c-d>";
|
||||
edit = "<c-e>";
|
||||
custom = { };
|
||||
};
|
||||
n = {
|
||||
select = "<cr>";
|
||||
paste = "p";
|
||||
paste_behind = "P";
|
||||
replay = "q";
|
||||
delete = "d";
|
||||
edit = "e";
|
||||
custom = { };
|
||||
};
|
||||
};
|
||||
fzf = {
|
||||
select = "default";
|
||||
paste = "ctrl-p";
|
||||
paste_behind = "ctrl-k";
|
||||
custom = { };
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue