utility/leetcode-nvim: init (#636)

* utility/leetcode-nvim: init

* utility/leetcode.nvim: Clean Code

Cleaned code upon PR review comments
This commit is contained in:
ARCIII 2025-02-16 03:10:32 -05:00 committed by GitHub
commit 0644475408
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 124 additions and 0 deletions

View file

@ -0,0 +1,26 @@
{
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;
};
};
};
}