From 3945397198a611347a89cb8635d0a9551a8e98a9 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 8 Jun 2024 22:01:29 +0200 Subject: use Telescope instead of fzf.vim --- lua/maps/find.lua | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) (limited to 'lua/maps/find.lua') diff --git a/lua/maps/find.lua b/lua/maps/find.lua index 5d4bfbe..aad0e46 100644 --- a/lua/maps/find.lua +++ b/lua/maps/find.lua @@ -1,8 +1,28 @@ -vim.api.nvim_set_keymap("n", "p", ":Files", { silent = true, noremap = true }) +vim.api.nvim_set_keymap( + "n", + "p", + ":Telescope find_files", + { silent = true, noremap = true } +) -vim.api.nvim_set_keymap("n", "b", ":Buffers", { silent = true, noremap = true }) +vim.api.nvim_set_keymap( + "n", + "b", + ":Telescope buffers", + { silent = true, noremap = true } +) -vim.api.nvim_set_keymap("n", "c", ":Commits", { silent = true, noremap = true }) +vim.api.nvim_set_keymap( + "n", + "c", + ":Telescope git_commits", + { silent = true, noremap = true } +) -vim.api.nvim_set_keymap("n", "f", ":Ag ", { noremap = true }) +vim.api.nvim_set_keymap( + "n", + "f", + ":Telescope live_grep", + { silent = true, noremap = true } +) -- cgit v1.2.3-18-g5258