mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-08 19:46:06 +01:00
endec: add module
Neovim encoder/decoder plugin for Base64, Base64URL, URL (percent encoding)
This commit is contained in:
parent
ff3a250bd0
commit
7f45eae65b
2 changed files with 67 additions and 0 deletions
15
plugins/by-name/endec/default.nix
Normal file
15
plugins/by-name/endec/default.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{ lib, ... }:
|
||||
lib.nixvim.plugins.mkNeovimPlugin {
|
||||
name = "endec";
|
||||
packPathName = "endec.nvim";
|
||||
package = "endec-nvim";
|
||||
|
||||
maintainers = [ lib.maintainers.khaneliman ];
|
||||
|
||||
settingsExample = {
|
||||
keymaps = {
|
||||
defaults = false;
|
||||
encode_base64_inplace = "gB";
|
||||
};
|
||||
};
|
||||
}
|
||||
52
tests/test-sources/plugins/by-name/endec/default.nix
Normal file
52
tests/test-sources/plugins/by-name/endec/default.nix
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.endec.enable = true;
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins.endec = {
|
||||
enable = true;
|
||||
settings = {
|
||||
keymaps = {
|
||||
defaults = true;
|
||||
decode_base64_inplace = "gyb";
|
||||
vdecode_base64_inplace = "gyb";
|
||||
decode_base64_popup = "gb";
|
||||
vdecode_base64_popup = "gb";
|
||||
encode_base64_inplace = "gB";
|
||||
vencode_base64_inplace = "gB";
|
||||
decode_base64url_inplace = "gys";
|
||||
vdecode_base64url_inplace = "gys";
|
||||
decode_base64url_popup = "gs";
|
||||
vdecode_base64url_popup = "gs";
|
||||
encode_base64url_inplace = "gS";
|
||||
vencode_base64url_inplace = "gS";
|
||||
decode_url_inplace = "gyl";
|
||||
vdecode_url_inplace = "gyl";
|
||||
decode_url_popup = "gl";
|
||||
vdecode_url_popup = "gl";
|
||||
encode_url_inplace = "gL";
|
||||
vencode_url_inplace = "gL";
|
||||
};
|
||||
popup = {
|
||||
enter = true;
|
||||
show_title = true;
|
||||
border = "rounded";
|
||||
transparency = 10;
|
||||
width = {
|
||||
min = 10;
|
||||
max = 80;
|
||||
};
|
||||
height = {
|
||||
min = 1;
|
||||
max = 50;
|
||||
};
|
||||
close_on = [
|
||||
"<Esc>"
|
||||
"q"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue