parent
							
								
									ab4f9942e8
								
							
						
					
					
						commit
						1f46b1d2ed
					
				
					 2 changed files with 8 additions and 15 deletions
				
			
		| 
						 | 
					@ -4,6 +4,8 @@ if not ok then
 | 
				
			||||||
    return
 | 
					    return
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					local nmap = require("my.utils").nmap
 | 
				
			||||||
 | 
					
 | 
				
			||||||
telescope.setup {
 | 
					telescope.setup {
 | 
				
			||||||
    extensions = {
 | 
					    extensions = {
 | 
				
			||||||
        fzf = {
 | 
					        fzf = {
 | 
				
			||||||
| 
						 | 
					@ -47,10 +49,10 @@ local function dotfiles()
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
telescope.load_extension("fzf")
 | 
					nmap("<C-p>", project, "Find project files")
 | 
				
			||||||
 | 
					nmap("<Leader>fn", dotfiles, "Dotfiles")
 | 
				
			||||||
 | 
					nmap("<Leader><C-p>", builtin.git_files, "Find git files")
 | 
				
			||||||
 | 
					nmap("<Leader>fg", builtin.live_grep, "Live grep")
 | 
				
			||||||
 | 
					nmap("<Leader>gs", builtin.git_status, "Git status")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
require("my.keymaps").telescope_keymaps {
 | 
					telescope.load_extension("fzf")
 | 
				
			||||||
    project = project,
 | 
					 | 
				
			||||||
    dotfiles = dotfiles,
 | 
					 | 
				
			||||||
    builtin = builtin,
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -75,15 +75,6 @@ local function lsp_keymaps(client, bufnr)
 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
local function telescope_keymaps(fns)
 | 
					 | 
				
			||||||
    nmap("<C-p>", fns.project, "Find project files")
 | 
					 | 
				
			||||||
    nmap("<Leader>fn", fns.dotfiles, "Dotfiles")
 | 
					 | 
				
			||||||
    nmap("<Leader><C-p>", fns.builtin.git_files, "Find git files")
 | 
					 | 
				
			||||||
    nmap("<Leader>fg", fns.builtin.live_grep, "Live grep")
 | 
					 | 
				
			||||||
    nmap("<Leader>gs", fns.builtin.git_status, "Git status")
 | 
					 | 
				
			||||||
end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
return {
 | 
					return {
 | 
				
			||||||
    lsp_keymaps = lsp_keymaps,
 | 
					    lsp_keymaps = lsp_keymaps,
 | 
				
			||||||
    telescope_keymaps = telescope_keymaps,
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue