feat: apply new module format to comment.nvim

This commit is contained in:
NotAShelf 2023-02-27 17:52:18 +03:00
parent ec1eaeca0d
commit f9b44dd9cb
No known key found for this signature in database
GPG Key ID: 5B5C8895F28445F1
3 changed files with 20 additions and 4 deletions

View File

@ -0,0 +1,14 @@
{
pkgs,
config,
lib,
...
}:
with lib;
with builtins; let
cfg = config.vim.comments.comment-nvim;
in {
options.vim.comments.comment-nvim = {
enable = mkEnableOption "comment-nvim";
};
}

View File

@ -8,10 +8,6 @@ with lib;
with builtins; let with builtins; let
cfg = config.vim.comments.comment-nvim; cfg = config.vim.comments.comment-nvim;
in { in {
options.vim.comments.comment-nvim = {
enable = mkEnableOption "comment-nvim";
};
config = mkIf cfg.enable { config = mkIf cfg.enable {
vim.startPlugins = [ vim.startPlugins = [
"comment-nvim" "comment-nvim"

View File

@ -0,0 +1,6 @@
_: {
imports = [
./config.nix
./comment-nvim.nix
];
}