mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-10-02 15:03:32 +00:00
treewide: don't import modules manually
Reduces maintenance burden.
This commit is contained in:
parent
c7a4e99837
commit
ae1922f6da
13 changed files with 27 additions and 34 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue