added the zk note taking assistant.
This commit is contained in:
parent
e8a5bb3bc9
commit
d2fdaf9611
configs/home-manager
modules/home-manager/nvim
roles/home-manager
|
@ -10,7 +10,6 @@
|
||||||
enableZshIntegration = false;
|
enableZshIntegration = false;
|
||||||
enableFishIntegration = false;
|
enableFishIntegration = false;
|
||||||
};
|
};
|
||||||
home.file = {
|
|
||||||
".config/zellij/config.kdl".source = ./config.kdl;
|
home.file.".config/zellij/config.kdl".source = ./config.kdl;
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
50
configs/home-manager/zk.nix
Normal file
50
configs/home-manager/zk.nix
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
{
|
||||||
|
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}}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -41,6 +41,7 @@
|
||||||
./gitsigns.nix
|
./gitsigns.nix
|
||||||
./which-key.nix
|
./which-key.nix
|
||||||
./telescope.nix
|
./telescope.nix
|
||||||
|
./zk.nix
|
||||||
./treesitter
|
./treesitter
|
||||||
./cmp
|
./cmp
|
||||||
./lsp
|
./lsp
|
||||||
|
|
12
modules/home-manager/nvim/zk.nix
Normal file
12
modules/home-manager/nvim/zk.nix
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
config = lib.mkIf config.user.nvim.enable {
|
||||||
|
programs.nixvim = {
|
||||||
|
plugins.zk.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -8,6 +8,7 @@
|
||||||
./minimal-terminal.nix
|
./minimal-terminal.nix
|
||||||
../../configs/home-manager/nushell
|
../../configs/home-manager/nushell
|
||||||
../../configs/home-manager/starship.nix
|
../../configs/home-manager/starship.nix
|
||||||
|
../../configs/home-manager/zk.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
user = {
|
user = {
|
||||||
|
|
Loading…
Reference in a new issue