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-10-22 14:58:10 +00:00
|
|
|
vim.keymap.set('n', '<leader>fs', builtin.live_grep);
|
2023-10-15 16:09:01 +00:00
|
|
|
vim.keymap.set('v', '<leader>fs', builtin.grep_string);
|
2023-12-12 10:27:00 +00:00
|
|
|
|
|
|
|
-- To get telescope-file-browser loaded and working with telescope,
|
|
|
|
-- you need to call load_extension, somewhere after setup function:
|
|
|
|
require("telescope").load_extension "file_browser"
|
|
|
|
|
|
|
|
vim.api.nvim_set_keymap(
|
|
|
|
"n",
|
|
|
|
"<leader>fb",
|
|
|
|
":Telescope file_browser path=%:p:h select_buffer=true<CR>",
|
|
|
|
{ noremap = true }
|
|
|
|
)
|