added more zk keybinds, integrated with telescope.
This commit is contained in:
parent
01bca4daf6
commit
a625646675
|
@ -6,7 +6,10 @@
|
|||
}: {
|
||||
config = lib.mkIf config.user.nvim.enable {
|
||||
programs.nixvim = {
|
||||
plugins.zk.enable = true;
|
||||
plugins.zk = {
|
||||
enable = true;
|
||||
settings.picker = "telescope";
|
||||
};
|
||||
plugins.which-key.settings.spec = [
|
||||
{
|
||||
__unkeyed-1 = "<leader>z";
|
||||
|
@ -32,6 +35,42 @@
|
|||
desc = "Search zk notes from selection";
|
||||
};
|
||||
}
|
||||
{
|
||||
action = ":ZkNotes<CR>";
|
||||
key = "<leader>zn";
|
||||
mode = "n";
|
||||
options = {
|
||||
silent = true;
|
||||
desc = "Search zk notes";
|
||||
};
|
||||
}
|
||||
{
|
||||
action = ":ZkLinks<CR>";
|
||||
key = "<leader>zl";
|
||||
mode = "n";
|
||||
options = {
|
||||
silent = true;
|
||||
desc = "Search outgoing links";
|
||||
};
|
||||
}
|
||||
{
|
||||
action = ":ZkBacklinks<CR>";
|
||||
key = "<leader>zb";
|
||||
mode = "n";
|
||||
options = {
|
||||
silent = true;
|
||||
desc = "Search incoming links";
|
||||
};
|
||||
}
|
||||
{
|
||||
action = ":ZkTags<CR>";
|
||||
key = "<leader>zt";
|
||||
mode = "n";
|
||||
options = {
|
||||
silent = true;
|
||||
desc = "Search tags";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue