mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-23 05:40:44 +00:00
40 lines
920 B
Nix
40 lines
920 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
with lib;
|
|
with builtins; {
|
|
options.vim.notes = {
|
|
obsidian = {
|
|
enable = mkEnableOption "complementary neovim plugins for Obsidian editor";
|
|
dir = mkOption {
|
|
type = types.str;
|
|
default = "~/my-vault";
|
|
description = "Obsidian vault directory";
|
|
};
|
|
|
|
daily-notes = {
|
|
folder = mkOption {
|
|
type = types.str;
|
|
default = "";
|
|
description = "Directory in which daily notes should be created";
|
|
};
|
|
date-format = mkOption {
|
|
type = types.str;
|
|
default = "";
|
|
description = "Date format used for creating daily notes";
|
|
};
|
|
};
|
|
|
|
completion = {
|
|
nvim_cmp = mkOption {
|
|
# if using nvim-cmp, otherwise set to false
|
|
type = types.bool;
|
|
description = "If using nvim-cmp, otherwise set to false";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|