nvf/modules/plugins/utility/leetcode-nvim/config.nix
midischwarz12 0e50bc857a leetcode: avoid duplicate fzf-lua
Fixes the following evaluation warning:

> evaluation warning: mnw: both startAttrs."fzf-lua" and optAttrs."fzf-lua" are defined and not null
>                     This will cause the plugin to be installed under /opt and /start.
2026-03-24 17:44:38 +01:00

26 lines
420 B
Nix

{
config,
lib,
...
}: let
inherit (lib.modules) mkIf;
cfg = config.vim.utility.leetcode-nvim;
in {
config = mkIf cfg.enable {
vim = {
startPlugins = [
"plenary-nvim"
"nui-nvim"
];
lazy.plugins.leetcode-nvim = {
package = "leetcode-nvim";
setupModule = "leetcode";
inherit (cfg) setupOpts;
};
telescope.enable = true;
};
};
}