From 008ea2303373d42f77d13821ddfe5983a64c2441 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Tue, 18 Apr 2023 04:13:33 +0300 Subject: [PATCH] feat: deprecate kommentary --- extra.nix | 1 - modules/comments/default.nix | 1 - modules/comments/kommentary.nix | 23 ----------------------- 3 files changed, 25 deletions(-) delete mode 100644 modules/comments/kommentary.nix diff --git a/extra.nix b/extra.nix index afa2df1..0bcd924 100644 --- a/extra.nix +++ b/extra.nix @@ -190,7 +190,6 @@ inputs: let vim.comments = { comment-nvim.enable = true; - kommentary. enable = false; }; vim.presence = { diff --git a/modules/comments/default.nix b/modules/comments/default.nix index 138ad80..cb6ac19 100644 --- a/modules/comments/default.nix +++ b/modules/comments/default.nix @@ -1,6 +1,5 @@ _: { imports = [ ./comment-nvim - ./kommentary.nix # WARNING: WILL BE REMOVED IN THE NEXT MAJOR RELEASE ]; } diff --git a/modules/comments/kommentary.nix b/modules/comments/kommentary.nix deleted file mode 100644 index 37442a2..0000000 --- a/modules/comments/kommentary.nix +++ /dev/null @@ -1,23 +0,0 @@ -{ - config, - lib, - ... -}: -with lib; -with builtins; let - cfg = config.vim.comments.kommentary; -in { - options.vim.comments.kommentary = { - enable = mkEnableOption "Enable kommentary"; - }; - - config = mkIf cfg.enable { - vim.startPlugins = [ - "kommentary" - ]; - - vim.luaConfigRC.kommentary = nvim.dag.entryAnywhere '' - require('kommentary.config').use_extended_mappings() - ''; - }; -}