From f9fdac492594e7b0b9dfbb44b708f01a53d97b86 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Sat, 17 Jun 2023 12:30:21 -0400 Subject: [PATCH] fix(neovim): Only import fcitx-vim if fcitx5 enabled This fixes an issue where fcitx-vim would error on systems without fcitx5 enabled. --- home/neovim.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home/neovim.nix b/home/neovim.nix index 136ab7f9..0a5e1e3d 100644 --- a/home/neovim.nix +++ b/home/neovim.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ pkgs, lib, config, ... }: let vim-nix-rummik = pkgs.vimUtils.buildVimPluginFrom2Nix { pname = "vim-nix"; @@ -324,7 +324,7 @@ in bufdelete-nvim vim-crystal vim-nix-rummik - fcitx-vim + (lib.mkIf (config.i18n.inputMethod.enabled == "fcitx5") fcitx-vim) ]; };