home-manager/common/nvim/telescope.lua

8 lines
273 B
Lua
Raw Normal View History

2023-07-23 03:04:32 +00:00
local telescope = require('telescope.builtin')
vim.keymap.set('n', '<leader>pf', telescope.find_files, {})
vim.keymap.set('n', '<C-p>', telescope.git_files, {})
vim.keymap.set('n', '<leader>ps', function()
telescope.grep_string({ search = vim.fn.input("Grep > ")});
end)