mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-01-06 05:59:31 +01:00
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:
parent
a725e0c2da
commit
f9fdac4925
@ -1,4 +1,4 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, lib, config, ... }:
|
||||||
let
|
let
|
||||||
vim-nix-rummik = pkgs.vimUtils.buildVimPluginFrom2Nix {
|
vim-nix-rummik = pkgs.vimUtils.buildVimPluginFrom2Nix {
|
||||||
pname = "vim-nix";
|
pname = "vim-nix";
|
||||||
@ -324,7 +324,7 @@ in
|
|||||||
bufdelete-nvim
|
bufdelete-nvim
|
||||||
vim-crystal
|
vim-crystal
|
||||||
vim-nix-rummik
|
vim-nix-rummik
|
||||||
fcitx-vim
|
(lib.mkIf (config.i18n.inputMethod.enabled == "fcitx5") fcitx-vim)
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user