Skip to content

Commit

Permalink
plugins/papis: init
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage authored and nix-infra-bot committed Jan 13, 2025
1 parent b7f783a commit b3d8575
Show file tree
Hide file tree
Showing 3 changed files with 888 additions and 0 deletions.
54 changes: 54 additions & 0 deletions plugins/by-name/papis/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{ lib, pkgs, ... }:
lib.nixvim.plugins.mkNeovimPlugin {
name = "papis";
packPathName = "papis.nvim";
package = "papis-nvim";

maintainers = [ lib.maintainers.GaetanLepage ];

# papis.nvim is an nvim-cmp source too
imports = [ { cmpSourcePlugins.papis = "papis"; } ];

extraOptions = {
yqPackage = lib.mkPackageOption pkgs "yq" {
nullable = true;
};
};
extraConfig = cfg: {
extraPackages = [ cfg.yqPackage ];
};

settingsOptions = import ./settings-options.nix lib;

settingsExample = {
enable_keymaps = true;
papis_python = {
dir = "~/Documents/papers";
info_name = "info.yaml";
notes_name.__raw = "[[notes.norg]]";
};
enable_modules = {
search = true;
completion = true;
cursor-actions = true;
formatter = true;
colors = true;
base = true;
debug = false;
};
cite_formats = {
tex = [
"\\cite{%s}"
"\\cite[tp]?%*?{%s}"
];
markdown = "@%s";
rmd = "@%s";
plain = "%s";
org = [
"[cite:@%s]"
"%[cite:@%s]"
];
norg = "{= %s}";
};
};
}
Loading

0 comments on commit b3d8575

Please sign in to comment.