nixos-config/config/programs/vim/modules/languages/zk-nvim.nix

30 lines
838 B
Nix
Raw Normal View History

2022-08-14 14:25:56 +00:00
{ pkgs, ... }: {
2022-08-14 14:27:59 +00:00
output.plugins = with pkgs.vimPlugins; [zk-nvim];
2022-08-14 14:25:56 +00:00
output.config_file = ''
lua require("zk-config")
'';
vim.keybindings = {
keybindings = {
"<leader>".z = {
n = {
command = "<Cmd>ZkNew { title = vim.fn.input('Title: ') }<CR>";
label = "Create new Zettel";
};
o = {
command = "<Cmd>ZkNotes { sort = { 'modified' } }<CR>";
label = "Open Zettel";
};
t = {
command = "<Cmd>ZkTags<CR>";
label = "Open Zettel associated with selected tags";
};
f = {
command = "<Cmd>ZkNotes { sort = { 'modified' }, match = vim.fn.input('Search: ') }<CR>";
label = "Search for Zettel given a given query";
};
};
};
};
}