some keybindings for zk-nvim.
This commit is contained in:
		
							parent
							
								
									d1ca19692b
								
							
						
					
					
						commit
						3f420834b6
					
				
					 2 changed files with 27 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -8,5 +8,31 @@
 | 
			
		|||
    programs.nixvim = {
 | 
			
		||||
      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";
 | 
			
		||||
        };
 | 
			
		||||
      }
 | 
			
		||||
    ];
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue