From 4c4654853985c1d8b42b57c7534feae478a97b68 Mon Sep 17 00:00:00 2001 From: diniamo Date: Sun, 7 Jul 2024 15:36:46 +0200 Subject: [PATCH] lib/types: expose pluginType --- 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 ff9acc94..d3676aa9 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 d00be95e..8f020737 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 d9cc5f2b..49ea3699 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,