mirror of
https://github.com/nvim-lua/kickstart.nvim.git
synced 2025-08-18 00:28:56 +02:00
18 lines
503 B
Lua
18 lines
503 B
Lua
|
return {
|
||
|
'nvim-telescope/telescope-file-browser.nvim',
|
||
|
dependencies = { 'nvim-telescope/telescope.nvim', 'nvim-lua/plenary.nvim' },
|
||
|
|
||
|
vim.keymap.set("n", "<space>fb", ":Telescope file_browser<CR>"),
|
||
|
|
||
|
-- open file_browser with the path of the current buffer
|
||
|
vim.keymap.set("n", "<space>fb", ":Telescope file_browser path=%:p:h select_buffer=true<CR>"),
|
||
|
|
||
|
-- Alternatively, using lua API
|
||
|
vim.keymap.set("n", "<space>fb", function()
|
||
|
require("telescope").extensions.file_browser.file_browser()
|
||
|
end)
|
||
|
}
|
||
|
|
||
|
|
||
|
|