telescope: modify keybinds

This commit is contained in:
Guanran Wang 2024-02-20 01:33:25 +08:00
parent 32d5c86270
commit 9944cae16a
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8

View file

@ -1,7 +1,8 @@
require("telescope").setup()
local builtin = require("telescope.builtin")
vim.keymap.set("n", "<c-p>", builtin.find_files, {})
vim.keymap.set("n", "<Space>f", builtin.find_files, {})
vim.keymap.set("n", "<Space><Space>", builtin.oldfiles, {})
vim.keymap.set("n", "<Space>fg", builtin.live_grep, {})
vim.keymap.set("n", "<Space>fh", builtin.help_tags, {})
vim.keymap.set("n", "<Space>sg", builtin.live_grep, {})
vim.keymap.set("n", "<Space>sh", builtin.help_tags, {})