Merge pull request #1161 from alfarelcynthesis/less-import

treewide: don't import modules manually
This commit is contained in:
Ching Pei Yang 2025-09-27 11:40:42 +02:00 committed by GitHub
commit 06bc21e75c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 27 additions and 34 deletions

View file

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