From e5383a8123f31b814f6e218279357b6db5741d06 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Tue, 12 Mar 2024 03:48:10 +0300 Subject: [PATCH] modules/snippets: switch to explicit lib calls --- modules/snippets/default.nix | 2 +- modules/snippets/vsnip/config.nix | 2 +- modules/snippets/vsnip/default.nix | 2 +- modules/snippets/vsnip/vsnip.nix | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/snippets/default.nix b/modules/snippets/default.nix index cde3f7c..3f9758a 100644 --- a/modules/snippets/default.nix +++ b/modules/snippets/default.nix @@ -1,4 +1,4 @@ -_: { +{ imports = [ ./vsnip ]; diff --git a/modules/snippets/vsnip/config.nix b/modules/snippets/vsnip/config.nix index fd4bf50..5c6ba75 100644 --- a/modules/snippets/vsnip/config.nix +++ b/modules/snippets/vsnip/config.nix @@ -3,7 +3,7 @@ lib, ... }: let - inherit (lib) mkIf; + inherit (lib.modules) mkIf; cfg = config.vim.snippets.vsnip; in { diff --git a/modules/snippets/vsnip/default.nix b/modules/snippets/vsnip/default.nix index fee36eb..87ef29e 100644 --- a/modules/snippets/vsnip/default.nix +++ b/modules/snippets/vsnip/default.nix @@ -1,4 +1,4 @@ -_: { +{ imports = [ ./vsnip.nix ]; diff --git a/modules/snippets/vsnip/vsnip.nix b/modules/snippets/vsnip/vsnip.nix index 2d423cb..5d3b6d9 100644 --- a/modules/snippets/vsnip/vsnip.nix +++ b/modules/snippets/vsnip/vsnip.nix @@ -1,5 +1,5 @@ {lib, ...}: let - inherit (lib) mkEnableOption; + inherit (lib.options) mkEnableOption; in { options.vim.snippets.vsnip = { enable = mkEnableOption "vim-vsnip: snippet LSP/VSCode's format";