local telescope = require "telescope" local map = vim.api.nvim_set_keymap telescope.setup { defaults = { vimgrep_arguments = { "rg", "--color=never", "--no-heading", "--with-filename", "--line-number", "--column", "--smart-case", "--hidden", }, }, pickers = { find_files = { find_command = { "fd", "--type", "f", "--strip-cwd-prefix", "--hidden" }, }, }, } telescope.load_extension "harpoon" -- File finding mappings map("n", "ff", "Telescope find_files", { silent = true }) map("n", "fg", "Telescope live_grep", { silent = true }) -- LSP mappings map("n", "gd", "Telescope lsp_definitions", { silent = true }) map("n", "gi", "Telescope lsp_implementations", { silent = true }) map("n", "gr", "Telescope lsp_references", { silent = true }) map("n", "gs", "Telescope lsp_dynamic_workspace_symbols", { silent = true }) map("n", "gp", "Telescope diagnostics bufnr=0", { silent = true }) map("n", "gP", "Telescope diagnostics", { silent = true }) -- other mappings map("n", "gm", "Telescope harpoon marks", { silent = true })