mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-14 11:14:36 +02:00
plugins/yanky: sqlite-lua assertion
This commit is contained in:
parent
da1a10d0f3
commit
34297f5e04
2 changed files with 20 additions and 4 deletions
|
@ -1,8 +1,8 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
helpers,
|
|
||||||
config,
|
config,
|
||||||
pkgs,
|
helpers,
|
||||||
|
options,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
|
@ -347,6 +347,16 @@ helpers.neovim-plugin.mkNeovimPlugin {
|
||||||
|
|
||||||
callSetup = false;
|
callSetup = false;
|
||||||
extraConfig = cfg: {
|
extraConfig = cfg: {
|
||||||
|
# TODO: Added 2024-09-14 remove after 24.11
|
||||||
|
plugins.sqlite-lua.enable = mkOverride 1490 true;
|
||||||
|
warnings =
|
||||||
|
optional
|
||||||
|
(cfg.settings.ring.storage == "sqlite" && options.plugins.sqlite-lua.enable.highestPrio == 1490)
|
||||||
|
''
|
||||||
|
Nixvim (plugins.yanky) `sqlite-lua` automatic installation is deprecated.
|
||||||
|
Please use `plugins.sqlite-lua.enable`.
|
||||||
|
'';
|
||||||
|
|
||||||
assertions = [
|
assertions = [
|
||||||
{
|
{
|
||||||
assertion = cfg.enableTelescope -> config.plugins.telescope.enable;
|
assertion = cfg.enableTelescope -> config.plugins.telescope.enable;
|
||||||
|
@ -354,6 +364,13 @@ helpers.neovim-plugin.mkNeovimPlugin {
|
||||||
Nixvim (plugins.yanky): The telescope integration needs telescope to function as intended
|
Nixvim (plugins.yanky): The telescope integration needs telescope to function as intended
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
assertion = cfg.settings.ring.storage == "sqlite" -> config.plugins.sqlite-lua.enable;
|
||||||
|
message = ''
|
||||||
|
Nixvim (plugins.yanky): The sqlite storage backend needs `sqlite-lua` to function as intended.
|
||||||
|
You can enable it by setting `plugins.sqlite-lua.enable` to `true`.
|
||||||
|
'';
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
extraConfigLua = ''
|
extraConfigLua = ''
|
||||||
|
@ -365,8 +382,6 @@ helpers.neovim-plugin.mkNeovimPlugin {
|
||||||
end
|
end
|
||||||
'';
|
'';
|
||||||
|
|
||||||
extraPlugins = mkIf (cfg.settings.ring.storage == "sqlite") [ pkgs.vimPlugins.sqlite-lua ];
|
|
||||||
|
|
||||||
plugins.telescope.enabledExtensions = mkIf cfg.enableTelescope [ "yank_history" ];
|
plugins.telescope.enabledExtensions = mkIf cfg.enableTelescope [ "yank_history" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -63,6 +63,7 @@
|
||||||
test.runNvim = false;
|
test.runNvim = false;
|
||||||
|
|
||||||
plugins = {
|
plugins = {
|
||||||
|
sqlite-lua.enable = true;
|
||||||
telescope.enable = true;
|
telescope.enable = true;
|
||||||
|
|
||||||
yanky = {
|
yanky = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue