mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-19 09:49:48 +01:00
feat: apply new module format to comment.nvim
This commit is contained in:
parent
ec1eaeca0d
commit
f9b44dd9cb
3 changed files with 20 additions and 4 deletions
14
modules/comments/comment-nvim/comment-nvim.nix
Normal file
14
modules/comments/comment-nvim/comment-nvim.nix
Normal 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";
|
||||||
|
};
|
||||||
|
}
|
|
@ -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"
|
6
modules/comments/comment-nvim/default.nix
Normal file
6
modules/comments/comment-nvim/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
_: {
|
||||||
|
imports = [
|
||||||
|
./config.nix
|
||||||
|
./comment-nvim.nix
|
||||||
|
];
|
||||||
|
}
|
Loading…
Reference in a new issue