mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-11-05 15:19:15 +01:00
37 lines
999 B
Lua
37 lines
999 B
Lua
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" },
|
|
},
|
|
},
|
|
|
|
extensions = {
|
|
["ui-select"] = {
|
|
require("telescope.themes").get_dropdown {},
|
|
},
|
|
},
|
|
}
|
|
|
|
telescope.load_extension "ui-select"
|
|
telescope.load_extension "harpoon"
|
|
|
|
map("n", "ff", "<cmd>Telescope find_files<cr>", { silent = true })
|
|
map("n", "fg", "<cmd>Telescope live_grep<cr>", { silent = true })
|
|
map("n", "gs", "<cmd>Telescope lsp_dynamic_workspace_symbols<cr>", { silent = true })
|
|
map("n", "gm", "<cmd>Telescope harpoon marks<cr>", { silent = true })
|