dotfiles/.config/nvim/after/plugin/telescope.lua
xHyroM 30620d5b2c nvim cfg
still wip, primeagen thx
2023-08-15 23:08:10 +02:00

12 lines
312 B
Lua

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)