sunhat/configs/dotfiles/nvim/lua/gib_nvim/telescope.lua
2024-06-09 04:16:43 -05:00

15 lines
516 B
Lua

local telescope = require('telescope')
local builtin = require('telescope.builtin')
telescope.setup{
defaults = {
file_ignore_patterns = {"node_modules", ".git", ".cache", ".DS_Store", "Steam", "Media", "Pictures", "Downloads", "Videos", "Music", ".venv", ".conda", "School"},
},
}
vim.keymap.set('n', '<leader>ff', builtin.find_files, {})
vim.keymap.set('n', '<leader>fg', builtin.git_files, {})
vim.keymap.set('n', '<leader>fs', function()
builtin.grep_string({ search = vim.fn.input("Grep > ") })
end)