update telescope keymap
This commit is contained in:
		
							parent
							
								
									33110b0465
								
							
						
					
					
						commit
						b54625d285
					
				
					 4 changed files with 41 additions and 39 deletions
				
			
		| 
						 | 
					@ -11,6 +11,15 @@
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    { # prefix: find
 | 
				
			||||||
 | 
					      mode = ["n"];
 | 
				
			||||||
 | 
					      key = "<leader>f";
 | 
				
			||||||
 | 
					      action = "<NOP>";
 | 
				
			||||||
 | 
					      options = {
 | 
				
			||||||
 | 
					        desc = "+find"; 
 | 
				
			||||||
 | 
					      };
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    { # focus window left
 | 
					    { # focus window left
 | 
				
			||||||
      mode = ["n"];
 | 
					      mode = ["n"];
 | 
				
			||||||
      key = "<C-Left>";
 | 
					      key = "<C-Left>";
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -6,10 +6,10 @@
 | 
				
			||||||
  keymaps = [
 | 
					  keymaps = [
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
      mode = ["n"];
 | 
					      mode = ["n"];
 | 
				
			||||||
      key = "<leader>ss";
 | 
					      key = "<leader>fs";
 | 
				
			||||||
      action = ":SessionSearch<cr>";
 | 
					      action = ":SessionSearch<cr>";
 | 
				
			||||||
      options = {
 | 
					      options = {
 | 
				
			||||||
        desc = "Search sessions";
 | 
					        desc = "Find sessions";
 | 
				
			||||||
        silent = true;
 | 
					        silent = true;
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -56,14 +56,14 @@
 | 
				
			||||||
  keymaps = [
 | 
					  keymaps = [
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
      mode = "";
 | 
					      mode = "";
 | 
				
			||||||
      key = "<leader>f";
 | 
					      key = "<leader>F";
 | 
				
			||||||
      action.__raw = ''
 | 
					      action.__raw = ''
 | 
				
			||||||
        function()
 | 
					        function()
 | 
				
			||||||
          require('conform').format { async = true, lsp_fallback = true }
 | 
					          require('conform').format { async = true, lsp_fallback = true }
 | 
				
			||||||
        end
 | 
					        end
 | 
				
			||||||
      '';
 | 
					      '';
 | 
				
			||||||
      options = {
 | 
					      options = {
 | 
				
			||||||
        desc = "format_buffer";
 | 
					        desc = "Format buffer";
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  ];
 | 
					  ];
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -12,47 +12,40 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Configure our telescope keymaps.
 | 
					    # Configure our telescope keymaps.
 | 
				
			||||||
    keymaps = {
 | 
					    keymaps = {
 | 
				
			||||||
      "<leader>/" = {
 | 
					      # Find
 | 
				
			||||||
        action = "live_grep";
 | 
					      "<leader>ff" = {
 | 
				
			||||||
        options = {
 | 
					 | 
				
			||||||
          desc = "live_grep";
 | 
					 | 
				
			||||||
        };
 | 
					 | 
				
			||||||
      };
 | 
					 | 
				
			||||||
      "<leader>:" = {
 | 
					 | 
				
			||||||
        action = "command_history";
 | 
					 | 
				
			||||||
        options = {
 | 
					 | 
				
			||||||
          desc = "command_history";
 | 
					 | 
				
			||||||
        };
 | 
					 | 
				
			||||||
      };
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      # Search
 | 
					 | 
				
			||||||
      "<leader>sb" = {
 | 
					 | 
				
			||||||
        action = "buffers";
 | 
					 | 
				
			||||||
        options = {
 | 
					 | 
				
			||||||
          desc = "Search open buffers";
 | 
					 | 
				
			||||||
        };
 | 
					 | 
				
			||||||
      };
 | 
					 | 
				
			||||||
      "<leader>sc" = {
 | 
					 | 
				
			||||||
        action = "commands";
 | 
					 | 
				
			||||||
        options = {
 | 
					 | 
				
			||||||
          desc = "Search Commands";
 | 
					 | 
				
			||||||
        };
 | 
					 | 
				
			||||||
      };
 | 
					 | 
				
			||||||
      "<leader>sf" = {
 | 
					 | 
				
			||||||
        action = "find_files";
 | 
					        action = "find_files";
 | 
				
			||||||
        options = {
 | 
					        options = {
 | 
				
			||||||
          desc = "Search project files";
 | 
					          desc = "Find project files";
 | 
				
			||||||
 | 
					        };
 | 
				
			||||||
 | 
					      };
 | 
				
			||||||
 | 
					      "<leader>fg" = {
 | 
				
			||||||
 | 
					        action = "live_grep";
 | 
				
			||||||
 | 
					        options = {
 | 
				
			||||||
 | 
					          desc = "Find pattern";
 | 
				
			||||||
 | 
					        };
 | 
				
			||||||
 | 
					      };
 | 
				
			||||||
 | 
					      "<leader>fb" = {
 | 
				
			||||||
 | 
					        action = "buffers";
 | 
				
			||||||
 | 
					        options = {
 | 
				
			||||||
 | 
					          desc = "Find open buffers";
 | 
				
			||||||
 | 
					        };
 | 
				
			||||||
 | 
					      };
 | 
				
			||||||
 | 
					      "<leader>fh" = {
 | 
				
			||||||
 | 
					        action = "help_tags";
 | 
				
			||||||
 | 
					        options = {
 | 
				
			||||||
 | 
					          desc = "Find help tags";
 | 
				
			||||||
 | 
					        };
 | 
				
			||||||
 | 
					      };
 | 
				
			||||||
 | 
					      "<leader>fc" = {
 | 
				
			||||||
 | 
					        action = "commands";
 | 
				
			||||||
 | 
					        options = {
 | 
				
			||||||
 | 
					          desc = "Find commands";
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      # List
 | 
					      # Git List
 | 
				
			||||||
      "<leader>glc" = {
 | 
					      "<leader>glc" = {
 | 
				
			||||||
        action = "git_bcommits";
 | 
					 | 
				
			||||||
        options = {
 | 
					 | 
				
			||||||
          desc = "List git commits";
 | 
					 | 
				
			||||||
        };
 | 
					 | 
				
			||||||
      };
 | 
					 | 
				
			||||||
      "<leader>glC" = {
 | 
					 | 
				
			||||||
        action = "git_commits";
 | 
					        action = "git_commits";
 | 
				
			||||||
        options = {
 | 
					        options = {
 | 
				
			||||||
          desc = "List git commits";
 | 
					          desc = "List git commits";
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue