mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2025-12-20 22:10:03 +01:00
27 lines
430 B
Nix
27 lines
430 B
Nix
|
|
{
|
||
|
|
config,
|
||
|
|
lib,
|
||
|
|
...
|
||
|
|
}: let
|
||
|
|
inherit (lib.modules) mkIf;
|
||
|
|
|
||
|
|
cfg = config.vim.utility.leetcode-nvim;
|
||
|
|
in {
|
||
|
|
config = mkIf cfg.enable {
|
||
|
|
vim = {
|
||
|
|
startPlugins = [
|
||
|
|
"leetcode-nvim"
|
||
|
|
"plenary-nvim"
|
||
|
|
"fzf-lua"
|
||
|
|
"nui-nvim"
|
||
|
|
];
|
||
|
|
|
||
|
|
lazy.plugins.leetcode-nvim = {
|
||
|
|
package = "leetcode-nvim";
|
||
|
|
setupModule = "leetcode";
|
||
|
|
inherit (cfg) setupOpts;
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
}
|