19 lines
608 B
Lua
19 lines
608 B
Lua
local builtin = require('telescope.builtin')
|
|
vim.keymap.set('n', '<leader>ff', builtin.find_files, {})
|
|
|
|
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);
|
|
|
|
-- 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 }
|
|
)
|