added some keybinds for zk-nvim.
This commit is contained in:
		
							parent
							
								
									3f420834b6
								
							
						
					
					
						commit
						c86b3bac98
					
				
					 1 changed files with 26 additions and 26 deletions
				
			
		| 
						 | 
					@ -7,32 +7,32 @@
 | 
				
			||||||
  config = lib.mkIf config.user.nvim.enable {
 | 
					  config = lib.mkIf config.user.nvim.enable {
 | 
				
			||||||
    programs.nixvim = {
 | 
					    programs.nixvim = {
 | 
				
			||||||
      plugins.zk.enable = true;
 | 
					      plugins.zk.enable = true;
 | 
				
			||||||
 | 
					      plugins.which-key.settings.spec = [
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					          __unkeyed-1 = "<leader>z";
 | 
				
			||||||
 | 
					          group = "+zk";
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					      ];
 | 
				
			||||||
 | 
					      keymaps = [
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					          action = ":ZkNewFromTitleSelection";
 | 
				
			||||||
 | 
					          key = "<leader>zn";
 | 
				
			||||||
 | 
					          mode = "n";
 | 
				
			||||||
 | 
					          options = {
 | 
				
			||||||
 | 
					            silent = true;
 | 
				
			||||||
 | 
					            desc = "New zk note with title from selection";
 | 
				
			||||||
 | 
					          };
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					          action = ":ZkaMatch";
 | 
				
			||||||
 | 
					          key = "<leader>zs";
 | 
				
			||||||
 | 
					          mode = "n";
 | 
				
			||||||
 | 
					          options = {
 | 
				
			||||||
 | 
					            silent = true;
 | 
				
			||||||
 | 
					            desc = "Search zk notes from selection";
 | 
				
			||||||
 | 
					          };
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					      ];
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
    plugins.which-key.settings.spec = [
 | 
					 | 
				
			||||||
      {
 | 
					 | 
				
			||||||
        __unkeyed-1 = "<leader>z";
 | 
					 | 
				
			||||||
        group = "+zk";
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
    ];
 | 
					 | 
				
			||||||
    keymaps = [
 | 
					 | 
				
			||||||
      {
 | 
					 | 
				
			||||||
        action = ":ZkNewFromTitleSelection";
 | 
					 | 
				
			||||||
        key = "<leader>zn";
 | 
					 | 
				
			||||||
        mode = "n";
 | 
					 | 
				
			||||||
        options = {
 | 
					 | 
				
			||||||
          silent = true;
 | 
					 | 
				
			||||||
          desc = "New zk note with title from selection";
 | 
					 | 
				
			||||||
        };
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
      {
 | 
					 | 
				
			||||||
        action = ":ZkaMatch";
 | 
					 | 
				
			||||||
        key = "<leader>zs";
 | 
					 | 
				
			||||||
        mode = "n";
 | 
					 | 
				
			||||||
        options = {
 | 
					 | 
				
			||||||
          silent = true;
 | 
					 | 
				
			||||||
          desc = "Search zk notes from selection";
 | 
					 | 
				
			||||||
        };
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
    ];
 | 
					 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue