trouble: remove redundant import

This commit is contained in:
Ching Pei Yang 2024-10-28 03:04:53 +01:00
parent 536feac331
commit b59689dbd9
No known key found for this signature in database
GPG key ID: B3841364253DC4C8

View file

@ -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) {