nix-community.nixvim/plugins/by-name/sandwich/default.nix

42 lines
885 B
Nix
Raw Normal View History

2024-03-26 17:25:39 +01:00
{
lib,
helpers,
...
}:
with lib;
2024-12-22 09:58:27 +00:00
lib.nixvim.plugins.mkVimPlugin {
2024-05-05 19:39:35 +02:00
name = "sandwich";
packPathName = "vim-sandwich";
package = "vim-sandwich";
2024-05-05 19:39:35 +02:00
globalPrefix = "sandwich_";
2024-03-26 17:25:39 +01:00
2024-05-05 19:39:35 +02:00
description = ''
The `settings` option will not let you define the options starting with `sandwich#`.
For those, you can directly use the `globals` option:
```nix
globals."sandwich#magicchar#f#patterns" = [
{
header.__raw = "[[\<\%(\h\k*\.\)*\h\k*]]";
bra = "(";
ket = ")";
footer = "";
}
];
```
'';
2024-03-26 17:25:39 +01:00
2024-05-05 19:39:35 +02:00
maintainers = [ maintainers.GaetanLepage ];
2024-03-26 17:25:39 +01:00
2024-05-05 19:39:35 +02:00
settingsOptions = {
2024-09-08 13:52:18 +01:00
no_default_key_mappings = helpers.defaultNullOpts.mkFlagInt 0 ''
2024-05-05 19:39:35 +02:00
Whether to disable the default mappings.
'';
};
2024-03-26 17:25:39 +01:00
2024-05-05 19:39:35 +02:00
settingsExample = {
2024-09-08 13:52:18 +01:00
no_default_key_mappings = 1;
no_tex_ftplugin = 1;
no_vim_ftplugin = 1;
2024-05-05 19:39:35 +02:00
};
}