telescope.lua 668 B

12345678910111213
  1. --
  2. -- telescope plugin setup
  3. --
  4. local telescope = require('telescope.builtin')
  5. vim.keymap.set('n', '<leader>ff', telescope.find_files, { desc = "Find files from current working directory" })
  6. vim.keymap.set('n', '<leader>fg', telescope.git_files, { desc = "Find files from current git repository" })
  7. vim.keymap.set('n', '<leader>fb', telescope.buffers, { desc = "Find files from buffers" })
  8. vim.keymap.set('n', '<leader>fr', telescope.registers, { desc = "Find files from registers" })
  9. vim.keymap.set('n', '<leader>fs', function()
  10. telescope.grep_string({ search = vim.fn.input("Grep > ") })
  11. end, { desc = 'Find in files content from current working directory' })