about summary refs log blame commit diff stats
path: root/modules/home/conf/nvim/plgs/telescope/extensions/bibtex/default.nix
blob: 6f3cc2ea157580a488536b45e394f425282460d1 (plain) (tree)
1
2
3
4
5
6
7
8
9




                                                                  

                          
                                                                              


                                                     
    
{pkgs, ...}: {
  # WARNING: This is only activated in tex files via the ftplugin.
  programs.nixvim = {
    extraPlugins = [
      pkgs.vimExtraPlugins.telescope-bibtex-nvim
    ];
    keymaps = [
      {
        key = "<space>ib";
        # This is registered in the ftplugin file, so we set this to null here
        action = "<Nop>";
        mode = "n";
        options.desc = "[i]nsert a [b]atex citation";
      }
    ];
  };
}