mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-28 03:20:08 +02:00
plugins/utils: move to by-name
This commit is contained in:
parent
faff32b9f1
commit
52f125679f
195 changed files with 2 additions and 102 deletions
|
@ -1,56 +0,0 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.firenvim.enable = true;
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.firenvim = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
globalSettings.alt = "all";
|
||||
localSettings = {
|
||||
".*" = {
|
||||
cmdline = "neovim";
|
||||
content = "text";
|
||||
priority = 0;
|
||||
selector = "textarea";
|
||||
takeover = "always";
|
||||
};
|
||||
"https?://[^/]+\\.co\\.uk/" = {
|
||||
takeover = "never";
|
||||
priority = 1;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
check-alias =
|
||||
{ config, ... }:
|
||||
{
|
||||
assertions = [
|
||||
{
|
||||
assertion = config.globals ? firenvim_config;
|
||||
message = "`firenvim_config` should be present in globals";
|
||||
}
|
||||
{
|
||||
assertion = config.globals.firenvim_config.globalSettings.alt or null == "all";
|
||||
message = "`globalSettings` should be have set `alt = \"all\"`";
|
||||
}
|
||||
{
|
||||
assertion = config.globals.firenvim_config.localSettings.".*".cmdline or null == "neovim";
|
||||
message = "`localSettings` should be have set `\".*\".cmdline = \"neovim\"`";
|
||||
}
|
||||
];
|
||||
|
||||
plugins.firenvim = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
globalSettings.alt = "all";
|
||||
localSettings.".*".cmdline = "neovim";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue