2023-09-14 18:15:11 +00:00
|
|
|
local builtin = require('telescope.builtin')
|
|
|
|
vim.keymap.set('n', '<leader>ff', builtin.find_files, {})
|
2023-10-15 16:09:01 +00:00
|
|
|
|
2023-12-30 11:16:42 +00:00
|
|
|
vim.keymap.set('n', '<leader>fp', builtin.live_grep);
|
|
|
|
vim.keymap.set('v', '<leader>fp', builtin.grep_string);
|
|
|
|
|
|
|
|
vim.keymap.set('n', '<leader>fs', builtin.lsp_dynamic_workspace_symbols);
|
2023-12-12 10:27:00 +00:00
|
|
|
|
2024-02-06 14:33:33 +00:00
|
|
|
|
|
|
|
require("telescope").setup({
|
2024-06-11 08:55:54 +00:00
|
|
|
pickers = {
|
2024-11-16 11:20:14 +00:00
|
|
|
find_files = { hidden = false }
|
2024-06-11 08:55:54 +00:00
|
|
|
},
|
2024-02-06 14:33:33 +00:00
|
|
|
extensions = {
|
|
|
|
["ui-select"] = {
|
|
|
|
require("telescope.themes").get_dropdown {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
require("telescope").load_extension("ui-select")
|
|
|
|
require("telescope").load_extension("file_browser")
|
2023-12-12 10:27:00 +00:00
|
|
|
|
|
|
|
vim.api.nvim_set_keymap(
|
|
|
|
"n",
|
|
|
|
"<leader>fb",
|
|
|
|
":Telescope file_browser path=%:p:h select_buffer=true<CR>",
|
|
|
|
{ noremap = true }
|
|
|
|
)
|