fix(neovim): Only import fcitx-vim if fcitx5 enabled

This fixes an issue where fcitx-vim would error on systems without
fcitx5 enabled.
This commit is contained in:
Donovan Glover 2023-06-17 12:30:21 -04:00
parent a725e0c2da
commit f9fdac4925
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -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)
];
};