treewide: don't import modules manually

Reduces maintenance burden.
This commit is contained in:
alfarel 2025-09-26 18:44:04 +00:00
commit ae1922f6da
No known key found for this signature in database
13 changed files with 27 additions and 34 deletions

View file

@ -1,7 +1,7 @@
{
pkgs,
config,
lib,
options,
...
}: let
inherit (lib.modules) mkMerge mkIf;
@ -9,8 +9,7 @@
inherit (lib.nvim.lua) toLuaObject;
cfg = config.vim.notes.todo-comments;
self = import ./todo-comments.nix {inherit pkgs lib;};
inherit (self.options.vim.notes.todo-comments) mappings;
inherit (options.vim.notes.todo-comments) mappings;
in {
config = mkIf cfg.enable {
vim = {