about summary refs log tree commit diff stats
path: root/modules/home/conf/nvim/plgs/telescope/extensions/bibtex/default.nix
blob: 6f3cc2ea157580a488536b45e394f425282460d1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{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";
      }
    ];
  };
}