Skip to content

Commit

Permalink
fix(keymappings): change telescope project mappings
Browse files Browse the repository at this point in the history
fix(keymappings): change telescope project mappings
  • Loading branch information
ecosse3 committed Apr 27, 2022
1 parent 33032db commit 60fc138
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/keymappings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ keymap("n", "<S-p>", "<CMD>lua require('plugins.telescope.pickers.multi-rg')()<C
keymap("n", "<CR>", ":noh<CR><CR>", silent)

-- Find word/file across project
keymap("n", "<Leader>pf", "yiw<CMD>Telescope git_files<CR><C-r>+<ESC>")
keymap("n", "<Leader>pw", "<CMD>Telescope grep_string<CR><ESC>")
keymap("n", "<Leader>pf", "<CMD>lua require('plugins.telescope').project_files({ default_text = vim.fn.expand('<cword>'), initial_mode = 'normal' })<CR>")
keymap("n", "<Leader>pw", "<CMD>lua require('telescope.builtin').grep_string({ initial_mode = 'normal' })<CR>")

-- Git
keymap("n", "<Leader>gla", "<CMD>lua require('plugins.telescope').my_git_commits()<CR>", {})
Expand Down

0 comments on commit 60fc138

Please sign in to comment.