nvimtree: remove unnecessary import

This commit is contained in:
Ching Pei Yang 2025-01-06 11:45:02 +01:00
parent 92e38fbfae
commit c071f2caa2
No known key found for this signature in database
GPG key ID: B3841364253DC4C8

View file

@ -1,7 +1,7 @@
{ {
options,
config, config,
lib, lib,
pkgs,
... ...
}: let }: let
inherit (lib.strings) optionalString; inherit (lib.strings) optionalString;
@ -11,8 +11,7 @@
inherit (lib.nvim.binds) pushDownDefault; inherit (lib.nvim.binds) pushDownDefault;
cfg = config.vim.filetree.nvimTree; cfg = config.vim.filetree.nvimTree;
self = import ./nvimtree.nix {inherit pkgs lib;}; inherit (options.vim.filetree.nvimTree) mappings;
inherit (self.options.vim.filetree.nvimTree) mappings;
in { in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
vim = { vim = {