added more zk keybinds, integrated with telescope.
This commit is contained in:
		
							parent
							
								
									01bca4daf6
								
							
						
					
					
						commit
						a625646675
					
				
					 1 changed files with 40 additions and 1 deletions
				
			
		| 
						 | 
					@ -6,7 +6,10 @@
 | 
				
			||||||
}: {
 | 
					}: {
 | 
				
			||||||
  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;
 | 
				
			||||||
 | 
					        settings.picker = "telescope";
 | 
				
			||||||
 | 
					      };
 | 
				
			||||||
      plugins.which-key.settings.spec = [
 | 
					      plugins.which-key.settings.spec = [
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
          __unkeyed-1 = "<leader>z";
 | 
					          __unkeyed-1 = "<leader>z";
 | 
				
			||||||
| 
						 | 
					@ -32,6 +35,42 @@
 | 
				
			||||||
            desc = "Search zk notes from selection";
 | 
					            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…
	
	Add table
		Add a link
		
	
		Reference in a new issue