mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-12-02 09:27:18 +00:00
31 lines
640 B
Nix
31 lines
640 B
Nix
|
{
|
||
|
pkgs,
|
||
|
config,
|
||
|
lib,
|
||
|
...
|
||
|
}:
|
||
|
with lib;
|
||
|
with builtins; let
|
||
|
cfg = config.vim.notes.obsidian;
|
||
|
auto = config.vim.autocomplete;
|
||
|
in {
|
||
|
options.vim.notes = {
|
||
|
obsidian = {
|
||
|
enable = mkEnableOption "Complementary neovim plugins for Obsidian editor";
|
||
|
dir = mkOption {
|
||
|
type = types.str;
|
||
|
default = "~/my-vault";
|
||
|
description = "Obsidian vault directory";
|
||
|
};
|
||
|
|
||
|
completion = {
|
||
|
nvim_cmp = mkOption {
|
||
|
# if using nvim-cmp, otherwise set to false
|
||
|
type = types.bool;
|
||
|
description = "If using nvim-cmp, otherwise set to false";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|