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
cfg = config.vim.comments.comment-nvim;
in {
options.vim.comments.comment-nvim = {
enable = mkEnableOption "comment-nvim";
};
config = mkIf cfg.enable {
vim.startPlugins = [
"comment-nvim"

View file

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