mirror of
https://github.com/halfdan/dotfiles.git
synced 2025-04-26 20:35:40 +00:00
34 lines
1.2 KiB
Lua
34 lines
1.2 KiB
Lua
local Remap = require("halfdan.keymap")
|
|
local nnoremap = Remap.nnoremap
|
|
local builtin = require("telescope.builtin")
|
|
|
|
nnoremap("<leader>ps", function()
|
|
builtin.grep_string({ search = vim.fn.input("Grep For > ")})
|
|
end)
|
|
nnoremap("<C-p>", function()
|
|
builtin.git_files()
|
|
end)
|
|
nnoremap("<Leader>pf", function()
|
|
builtin.find_files()
|
|
end)
|
|
|
|
nnoremap("<leader>pw", function()
|
|
builtin.grep_string { search = vim.fn.expand("<cword>") }
|
|
end)
|
|
nnoremap("<leader>pb", function()
|
|
builtin.buffers()
|
|
end)
|
|
nnoremap("<leader>vh", function()
|
|
builtin.help_tags()
|
|
end)
|
|
|
|
-- Telescope
|
|
-- nnoremap('<leader>fs', ':lua require(\'telescope.builtin\').grep_string({ search = vim.fn.input("Grep For > ")})<CR>')
|
|
-- nnoremap('<Leader>ff', ':lua require(\'telescope.builtin\').find_files()<CR>')
|
|
|
|
-- nnoremap('<leader>fw', ':lua require(\'telescope.builtin\').grep_string { search = vim.fn.expand("<cword>") }<CR>')
|
|
-- nnoremap('<leader>fb', ':lua require(\'telescope.builtin\').buffers()<CR>')
|
|
-- nnoremap('<leader>vh', ':lua require(\'telescope.builtin\').help_tags()<CR>')
|
|
-- nnoremap('<leader>gwl', ':lua require(\'telescope\').extensions.git_worktree.git_worktrees()<CR>')
|
|
-- nnoremap('<leader>gwc', ':lua require(\'telescope\').extensions.git_worktree.create_git_worktree()<CR>')
|