mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-08 11:36:07 +01:00
plugins/notebook-navigator: fix warning condition
Signed-off-by: saygo-png <saygo.mail@proton.me>
This commit is contained in:
parent
660fba984f
commit
2c003e9319
1 changed files with 11 additions and 1 deletions
|
|
@ -105,7 +105,17 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
extraConfig = cfg: {
|
extraConfig = cfg: {
|
||||||
warnings = lib.nixvim.mkWarnings "plugins.notebook-navigator" [
|
warnings = lib.nixvim.mkWarnings "plugins.notebook-navigator" [
|
||||||
{
|
{
|
||||||
when = (cfg.settings.activate_hydra_keys != null) && (!config.plugins.hydra.enable);
|
when =
|
||||||
|
(
|
||||||
|
!(
|
||||||
|
cfg ? settings.activate_hydra_keys
|
||||||
|
&& builtins.elem cfg.settings.activate_hydra_keys [
|
||||||
|
null
|
||||||
|
(lib.nixvim.mkRaw "nil")
|
||||||
|
]
|
||||||
|
)
|
||||||
|
)
|
||||||
|
&& (!config.plugins.hydra.enable);
|
||||||
message = ''
|
message = ''
|
||||||
`settings.activate_hydra_keys` has been set to a non-`null` value but `plugins.hydra.enable` is `false`.
|
`settings.activate_hydra_keys` has been set to a non-`null` value but `plugins.hydra.enable` is `false`.
|
||||||
'';
|
'';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue