plugins/telescope: refactor mkExtension

Allow importing `mkExtension` without needing to supply any
dependencies.

All dependencies can be accessed via module args anyway.
This commit is contained in:
Matt Sturgeon 2024-11-19 17:01:19 +00:00
parent c674f10d18
commit 929bb0cd1c
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
11 changed files with 115 additions and 136 deletions

View file

@ -1,15 +1,14 @@
{
lib,
config,
pkgs,
...
}:
let
inherit (lib.nixvim) defaultNullOpts;
inherit (lib) types;
telescopeHelpers = import ./_helpers.nix { inherit lib config pkgs; };
mkExtension = import ./_mk-extension.nix;
in
telescopeHelpers.mkExtension {
mkExtension {
name = "live-grep-args";
extensionName = "live_grep_args";
package = "telescope-live-grep-args-nvim";