mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-22 07:39:47 +01:00
Merge pull request #97 from Amanse/obsidian-daily
feat: add daily note options for obsidian
This commit is contained in:
commit
deab06eba2
3 changed files with 29 additions and 0 deletions
|
@ -11,3 +11,7 @@ https://github.com/horriblename[horriblename]:
|
|||
* Add transparency support for tokyonight theme.
|
||||
|
||||
* Fix bug where cmp's close and scrollDocs mappings wasn't working.
|
||||
|
||||
https://github.com/amanse[amanse]:
|
||||
|
||||
* Add daily notes options for obsidian plugin
|
||||
|
|
|
@ -23,6 +23,18 @@ in {
|
|||
if (auto.type == "nvim-cmp")
|
||||
then "true"
|
||||
else "false"
|
||||
}
|
||||
},
|
||||
daily_notes = {
|
||||
folder = ${
|
||||
if (cfg.daily-notes.folder == "")
|
||||
then "nil,"
|
||||
else "'${cfg.daily-notes.folder}',"
|
||||
}
|
||||
date_format = ${
|
||||
if (cfg.daily-notes.date-format == "")
|
||||
then "nil,"
|
||||
else "'${cfg.daily-notes.date-format}',"
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
@ -14,6 +14,19 @@ with builtins; {
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue