plugins/octo: add snacks picker to picker options

The snacks picker is also a valid choice now:
631776a36c/lua/octo/config.lua (L418)
This commit is contained in:
Johan Larsson 2025-03-12 22:12:15 +01:00
parent 3a3abf1170
commit 33097dcf77
No known key found for this signature in database
GPG key ID: 2A41C0FEDD6FF540
2 changed files with 18 additions and 0 deletions

View file

@ -124,6 +124,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
[
"telescope"
"fzf-lua"
"snacks"
]
''
Picker to use.
@ -182,5 +183,11 @@ lib.nixvim.plugins.mkNeovimPlugin {
plugins.telescope.enable = lib.mkDefault true;
})
(lib.mkIf (cfg.settings.picker == "fzf-lua") { plugins.fzf-lua.enable = lib.mkDefault true; })
(lib.mkIf (cfg.settings.picker == "snacks") {
plugins.snacks = {
enable = lib.mkDefault true;
settings.picker.enabled = lib.mkDefault true;
};
})
];
}

View file

@ -39,6 +39,17 @@
};
};
withSnacksPicker = {
# This test is flaky and fails non-deterministically
test.runNvim = false;
plugins.web-devicons.enable = true;
plugins.octo = {
enable = true;
settings.picker = "snacks";
};
};
defaults = {
# This test is flaky and fails non-deterministically
test.runNvim = false;