From 82d67cbc66b733e0af3d03319769011de25ef97a Mon Sep 17 00:00:00 2001 From: diniamo <55629891+diniamo@users.noreply.github.com> Date: Wed, 10 Jul 2024 21:58:37 +0200 Subject: [PATCH] lib/types: expose pluginType (#322) --- docs/release-notes/rl-0.7.md | 2 ++ lib/types/default.nix | 2 +- lib/types/plugins.nix | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/release-notes/rl-0.7.md b/docs/release-notes/rl-0.7.md index ff9acc9..d3676aa 100644 --- a/docs/release-notes/rl-0.7.md +++ b/docs/release-notes/rl-0.7.md @@ -49,6 +49,8 @@ Release notes for release 0.7 - Use `clangd` as the default language server for C languages +- Expose `lib.nvim.types.pluginType`, which for example allows the user to create abstractions for adding plugins + [NotAShelf](https://github.com/notashelf): - Add `deno fmt` as the default Markdown formatter. This will be enabled diff --git a/lib/types/default.nix b/lib/types/default.nix index d00be95..8f02073 100644 --- a/lib/types/default.nix +++ b/lib/types/default.nix @@ -8,6 +8,6 @@ typesLanguage = import ./languages.nix {inherit lib;}; in { inherit (typesDag) dagOf; - inherit (typesPlugin) pluginsOpt extraPluginType mkPluginSetupOption luaInline; + inherit (typesPlugin) pluginsOpt extraPluginType mkPluginSetupOption luaInline pluginType; inherit (typesLanguage) diagnostics mkGrammarOption; } diff --git a/lib/types/plugins.nix b/lib/types/plugins.nix index e10547f..c0e89d6 100644 --- a/lib/types/plugins.nix +++ b/lib/types/plugins.nix @@ -52,7 +52,7 @@ }; }; in { - inherit extraPluginType fromInputs; + inherit extraPluginType fromInputs pluginType; pluginsOpt = { description,