nix-config/configs/home-manager/zk.nix

51 lines
1 KiB
Nix

{
config,
pkgs,
lib,
...
}: {
programs.zk = {
enable = true;
settings = {
notebook.dir = "~/notes";
note = {
language = "en";
default-title = "untitled";
filename = "{{id}}-{{slug title}}";
id-charset = "hex";
id-length = 8;
id-case = "lower";
};
format.markdown={
link-format="wiki";
hashtags=true;
};
alias = {
bl = ''zk list --link-to $@'';
i = ''zk edit --interactive'';
unlinked-mentions = ''zk list --mentioned-by $1 --no-linked-by $1'';
wc = ''zk list --format '{{word-count}}\t{{title}}' --sort word-count $@'';
};
tool = {
fzf-preview = "bat -p --color always {-1}";
};
lsp = {
diagnostics = {
wiki-title = "hint";
dead-link = "error";
};
completion = {
note-label = "{{title-or-path}}";
note-filter-text = "{{title}} {{path}}";
note-detail = "{{filename}}";
};
};
};
};
}