mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
plugins/nvim-orgmode: init
This commit is contained in:
parent
f3362d2e9d
commit
2b30ee8703
3 changed files with 57 additions and 0 deletions
|
@ -76,6 +76,7 @@
|
|||
./languages/markdown/preview.nix
|
||||
./languages/nix.nix
|
||||
./languages/nvim-jdtls.nix
|
||||
./languages/nvim-orgmode.nix
|
||||
./languages/openscad.nix
|
||||
./languages/otter.nix
|
||||
./languages/parinfer-rust.nix
|
||||
|
|
30
plugins/languages/nvim-orgmode.nix
Normal file
30
plugins/languages/nvim-orgmode.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib.nixvim) defaultNullOpts;
|
||||
in
|
||||
lib.nixvim.neovim-plugin.mkNeovimPlugin config {
|
||||
name = "orgmode";
|
||||
originalName = "nvim-orgmode";
|
||||
defaultPackage = pkgs.vimPlugins.orgmode;
|
||||
|
||||
maintainers = [ lib.nixvim.maintainers.refaelsh ];
|
||||
|
||||
settingsOptions = {
|
||||
org_agenda_files = defaultNullOpts.mkNullable (with lib.types; either str (listOf str)) "" ''
|
||||
A path for Org agenda files.
|
||||
'';
|
||||
org_default_notes_file = defaultNullOpts.mkStr "" ''
|
||||
A path to the default notes file.
|
||||
'';
|
||||
};
|
||||
|
||||
settingsExample = {
|
||||
org_agenda_files = "~/orgfiles/**/*";
|
||||
org_default_notes_file = "~/orgfiles/refile.org";
|
||||
};
|
||||
}
|
26
tests/test-sources/plugins/languages/orgmode.nix
Normal file
26
tests/test-sources/plugins/languages/orgmode.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.orgmode.enable = true;
|
||||
};
|
||||
|
||||
default = {
|
||||
plugins.orgmode = {
|
||||
enable = true;
|
||||
settings = {
|
||||
org_agenda_files = "";
|
||||
org_default_notes_file = "";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.orgmode = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
org_agenda_files = "~/orgfiles/**/*";
|
||||
org_default_notes_file = "~/orgfiles/refile.org";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue