{ pkgs, config, lib, ... }: let cfg = config.soispha.programs.nvim; in { # WARNING: This is only activated in tex files via the ftplugin. home-manager.users.soispha.programs.nixvim = lib.mkIf cfg.enable { extraPlugins = [ pkgs.vimExtraPlugins.telescope-bibtex-nvim ]; keymaps = [ { key = "ib"; # This is registered in the ftplugin file, so we set this to null here action = ""; mode = "n"; options.desc = "[i]nsert a [b]atex citation"; } ]; }; }