parent
ab4f9942e8
commit
1f46b1d2ed
2 changed files with 8 additions and 15 deletions
|
@ -4,6 +4,8 @@ if not ok then
|
|||
return
|
||||
end
|
||||
|
||||
local nmap = require("my.utils").nmap
|
||||
|
||||
telescope.setup {
|
||||
extensions = {
|
||||
fzf = {
|
||||
|
@ -47,10 +49,10 @@ local function dotfiles()
|
|||
}
|
||||
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 {
|
||||
project = project,
|
||||
dotfiles = dotfiles,
|
||||
builtin = builtin,
|
||||
}
|
||||
telescope.load_extension("fzf")
|
||||
|
|
|
@ -75,15 +75,6 @@ local function lsp_keymaps(client, bufnr)
|
|||
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 {
|
||||
lsp_keymaps = lsp_keymaps,
|
||||
telescope_keymaps = telescope_keymaps,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue