mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-29 20:04:28 +02:00
plugins/papis: init
This commit is contained in:
parent
b7f783a8dc
commit
b3d857573b
3 changed files with 888 additions and 0 deletions
54
plugins/by-name/papis/default.nix
Normal file
54
plugins/by-name/papis/default.nix
Normal file
|
@ -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…
Add table
Add a link
Reference in a new issue