From b59689dbd94aef129359ef0d3b4907543fc38e1f Mon Sep 17 00:00:00 2001 From: Ching Pei Yang Date: Mon, 28 Oct 2024 03:04:53 +0100 Subject: [PATCH] trouble: remove redundant import --- modules/plugins/lsp/trouble/config.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/plugins/lsp/trouble/config.nix b/modules/plugins/lsp/trouble/config.nix index e4b966a..cae0c7a 100644 --- a/modules/plugins/lsp/trouble/config.nix +++ b/modules/plugins/lsp/trouble/config.nix @@ -1,6 +1,7 @@ { config, lib, + options, ... }: let inherit (lib.modules) mkIf; @@ -8,8 +9,7 @@ cfg = config.vim.lsp; - self = import ./trouble.nix {inherit lib;}; - mappingDefinitions = self.options.vim.lsp.trouble.mappings; + mappingDefinitions = options.vim.lsp.trouble.mappings; mappings = addDescriptionsToMappings cfg.trouble.mappings mappingDefinitions; in { config = mkIf (cfg.enable && cfg.trouble.enable) {