dotfiles/.config/nvim/after/plugin/telescope.lua

13 lines
312 B
Lua
Raw Normal View History

2023-08-15 23:08:10 +02:00
local builtin = require("telescope.builtin")
-- find files
vim.keymap.set("n", "<leader>pf", builtin.find_files, {})
-- git files
vim.keymap.set("n", "<C-p>", builtin.git_files, {})
-- project search
vim.keymap.set("n", "<leader>ps", function()
builtin.grep_string({ search = vim.fn.input("Grep > ") })
end)