summaryrefslogtreecommitdiffstats
path: root/modules/by-name/nv/nvim/plgs/which-key
diff options
context:
space:
mode:
authorSoispha Peetz <soispha@b-peetz.de>2026-11-26 01:07:25 +0100
committerSoispha Peetz <soispha@b-peetz.de>2026-11-28 23:58:38 +0100
commit4fc9dd3bbb56a0f976733b5169be58820ed5be6f (patch)
tree10f50bcfeee265d526e9471829c7db6ac0f5e9f7 /modules/by-name/nv/nvim/plgs/which-key
parentmodules/dns: Also use a resolving dns server (diff)
downloadnixos-config-4fc9dd3bbb56a0f976733b5169be58820ed5be6f.zip
modules/nvim: Import all the modules via mkMerge
This means that we use only one `lib.mkIf cfg.enable`, so when there is no nixvim module loaded it does not error.
Diffstat (limited to 'modules/by-name/nv/nvim/plgs/which-key')
-rw-r--r--modules/by-name/nv/nvim/plgs/which-key/default.nix10
1 files changed, 2 insertions, 8 deletions
diff --git a/modules/by-name/nv/nvim/plgs/which-key/default.nix b/modules/by-name/nv/nvim/plgs/which-key/default.nix
index e5bca546..b247b533 100644
--- a/modules/by-name/nv/nvim/plgs/which-key/default.nix
+++ b/modules/by-name/nv/nvim/plgs/which-key/default.nix
@@ -7,14 +7,8 @@
#
# You should have received a copy of the License along with this program.
# If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
-{
- config,
- lib,
- ...
-}: let
- cfg = config.soispha.programs.nvim;
-in {
- home-manager.users.soispha.programs.nixvim.plugins.which-key = lib.mkIf cfg.enable {
+{...}: {
+ home-manager.users.soispha.programs.nixvim.plugins.which-key = {
enable = true;
};
}