aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Patti <feoh@feoh.org>2023-04-26 11:24:27 -0400
committerGitHub <noreply@github.com>2023-04-26 11:24:27 -0400
commitbc3a3d35583fde990a66bcd05d2d222c43c50cbf (patch)
tree4db217243af959a7513fbfefdf22762a05ad85ee
parent36842aa368cbe3df3059c25db1bd2d15bc731a94 (diff)
parent0dfc1592862c145f72a0844521542d1522f33607 (diff)
Merge pull request #282 from liepieshov/master
setup a standard binding for searching git files using telescope
-rw-r--r--init.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 1cfa228..22d90cd 100644
--- a/init.lua
+++ b/init.lua
@@ -276,6 +276,7 @@ vim.keymap.set('n', '<leader>/', function()
})
end, { desc = '[/] Fuzzily search in current buffer' })
+vim.keymap.set('n', '<leader>gf', require('telescope.builtin').git_files, { desc = 'Search [G]it [F]iles' })
vim.keymap.set('n', '<leader>sf', require('telescope.builtin').find_files, { desc = '[S]earch [F]iles' })
vim.keymap.set('n', '<leader>sh', require('telescope.builtin').help_tags, { desc = '[S]earch [H]elp' })
vim.keymap.set('n', '<leader>sw', require('telescope.builtin').grep_string, { desc = '[S]earch current [W]ord' })