From bf090172d2aaed2731a7c2661f4cc68791eb0e87 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Mon, 6 May 2024 23:09:40 +0300 Subject: [PATCH] modules/extra: init deprecations module; warn for elixir & vim-tidal --- modules/extra/deprecations.nix | 16 ++++++++++++++++ modules/modules.nix | 8 +++++++- modules/plugins/languages/default.nix | 6 ++---- 3 files changed, 25 insertions(+), 5 deletions(-) create mode 100644 modules/extra/deprecations.nix diff --git a/modules/extra/deprecations.nix b/modules/extra/deprecations.nix new file mode 100644 index 0000000..b2bf522 --- /dev/null +++ b/modules/extra/deprecations.nix @@ -0,0 +1,16 @@ +{lib, ...}: let + inherit (lib.modules) mkRemovedOptionModule; +in { + imports = [ + # 2024-06-06 + (mkRemovedOptionModule ["vim" "languages" "elixir"] '' + Elixir language support has been removed as of 2024-06-06 as it was long unmaintained. If + you dependend on this language support, please consider contributing to its maintenance. + '') + + (mkRemovedOptionModule ["vim" "tidal"] '' + Tidalcycles language support has been removed as of 2024-06-06 as it was long unmaintained. If + you depended on this functionality, please open an issue. + '') + ]; +} diff --git a/modules/modules.nix b/modules/modules.nix index 620111f..0de5984 100644 --- a/modules/modules.nix +++ b/modules/modules.nix @@ -53,7 +53,13 @@ "warnings" ]; - allModules = concatLists [neovim plugins wrapper]; + # Extra modules, such as deprecation warnings + # or renames in one place. + extra = map (p: ./extra + "/${p}") [ + "deprecations.nix" + ]; + + allModules = concatLists [neovim plugins wrapper extra]; pkgsModule = {config, ...}: { config = { diff --git a/modules/plugins/languages/default.nix b/modules/plugins/languages/default.nix index eb5125a..802dfe7 100644 --- a/modules/plugins/languages/default.nix +++ b/modules/plugins/languages/default.nix @@ -2,10 +2,8 @@ inherit (lib.nvim.languages) mkEnable; in { imports = [ - ./bash - ./dart - ./elixir - + ./bash.nix + ./dart.nix ./clang.nix ./css.nix ./go.nix