summaryrefslogtreecommitdiff
path: root/lua/maps
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-06-08 22:01:29 +0200
committerHampusM <hampus@hampusmat.com>2024-06-08 22:01:33 +0200
commit3945397198a611347a89cb8635d0a9551a8e98a9 (patch)
treecb7ccd081245c394577cddfe00da33d265cc6ec4 /lua/maps
parent4a61ce3e2a7b11e5d94fc047ffdd7351623df199 (diff)
use Telescope instead of fzf.vim
Diffstat (limited to 'lua/maps')
-rw-r--r--lua/maps/find.lua28
1 files changed, 24 insertions, 4 deletions
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", "<leader>p", ":Files<CR>", { silent = true, noremap = true })
+vim.api.nvim_set_keymap(
+ "n",
+ "<leader>p",
+ ":Telescope find_files<CR>",
+ { silent = true, noremap = true }
+)
-vim.api.nvim_set_keymap("n", "<leader>b", ":Buffers<CR>", { silent = true, noremap = true })
+vim.api.nvim_set_keymap(
+ "n",
+ "<leader>b",
+ ":Telescope buffers<CR>",
+ { silent = true, noremap = true }
+)
-vim.api.nvim_set_keymap("n", "<leader>c", ":Commits<CR>", { silent = true, noremap = true })
+vim.api.nvim_set_keymap(
+ "n",
+ "<leader>c",
+ ":Telescope git_commits<CR>",
+ { silent = true, noremap = true }
+)
-vim.api.nvim_set_keymap("n", "<leader>f", ":Ag ", { noremap = true })
+vim.api.nvim_set_keymap(
+ "n",
+ "<leader>f",
+ ":Telescope live_grep<CR>",
+ { silent = true, noremap = true }
+)