init.lua/after/plugin/telescope.lua

7 lines
269 B
Lua
Raw Normal View History

2024-01-21 21:52:43 +00:00
local builtin = require('telescope.builtin')
vim.keymap.set('n', '<leader>pf', builtin.find_files, {})
vim.keymap.set('n', '<leader>gf', builtin.git_files, {})
vim.keymap.set('n', '<leader>ps', function()
builtin.grep_string({ search = vim.fn.input("grep > ") })
end)