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
 | 
			
		||||
      mode = ["n"];
 | 
			
		||||
      key = "<C-Left>";
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -6,10 +6,10 @@
 | 
			
		|||
  keymaps = [
 | 
			
		||||
    {
 | 
			
		||||
      mode = ["n"];
 | 
			
		||||
      key = "<leader>ss";
 | 
			
		||||
      key = "<leader>fs";
 | 
			
		||||
      action = ":SessionSearch<cr>";
 | 
			
		||||
      options = {
 | 
			
		||||
        desc = "Search sessions";
 | 
			
		||||
        desc = "Find sessions";
 | 
			
		||||
        silent = true;
 | 
			
		||||
      };
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -56,14 +56,14 @@
 | 
			
		|||
  keymaps = [
 | 
			
		||||
    {
 | 
			
		||||
      mode = "";
 | 
			
		||||
      key = "<leader>f";
 | 
			
		||||
      key = "<leader>F";
 | 
			
		||||
      action.__raw = ''
 | 
			
		||||
        function()
 | 
			
		||||
          require('conform').format { async = true, lsp_fallback = true }
 | 
			
		||||
        end
 | 
			
		||||
      '';
 | 
			
		||||
      options = {
 | 
			
		||||
        desc = "format_buffer";
 | 
			
		||||
        desc = "Format buffer";
 | 
			
		||||
      };
 | 
			
		||||
    }
 | 
			
		||||
  ];
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -12,47 +12,40 @@
 | 
			
		|||
 | 
			
		||||
    # Configure our telescope keymaps.
 | 
			
		||||
    keymaps = {
 | 
			
		||||
      "<leader>/" = {
 | 
			
		||||
        action = "live_grep";
 | 
			
		||||
        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" = {
 | 
			
		||||
      # Find
 | 
			
		||||
      "<leader>ff" = {
 | 
			
		||||
        action = "find_files";
 | 
			
		||||
        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" = {
 | 
			
		||||
        action = "git_bcommits";
 | 
			
		||||
        options = {
 | 
			
		||||
          desc = "List git commits";
 | 
			
		||||
        };
 | 
			
		||||
      };
 | 
			
		||||
      "<leader>glC" = {
 | 
			
		||||
        action = "git_commits";
 | 
			
		||||
        options = {
 | 
			
		||||
          desc = "List git commits";
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue