nvim-config/after/plugin/keymap/telescope.lua

27 lines
766 B
Lua
Raw Permalink Normal View History

2022-11-01 18:09:46 +01:00
local Remap = require("serxoz.keymap")
local nnoremap = Remap.nnoremap
nnoremap("<C-p>", ":Telescope")
nnoremap("<leader>ps", function()
require('telescope.builtin').grep_string({ search = vim.fn.input("Grep For > ")})
end)
nnoremap("<C-p>", function()
require('telescope.builtin').git_files()
end)
nnoremap("<Leader>ff", function()
require('telescope.builtin').find_files()
end)
nnoremap("<Leader>fg", function()
require('telescope.builtin').live_grep()
end)
nnoremap("<leader>fw", function()
require('telescope.builtin').grep_string { search = vim.fn.expand("<cword>") }
end)
nnoremap("<leader>fb", function()
require('telescope.builtin').buffers()
end)
nnoremap("<leader>fh", function()
require('telescope.builtin').help_tags()
end)