new file browser for neovim telescope.

This commit is contained in:
Gabe Venberg 2022-01-07 16:26:30 -06:00
parent eb6428a51b
commit 51a5135297
2 changed files with 2 additions and 1 deletions

View file

@ -92,7 +92,7 @@ vim.cmd 'colorscheme moonfly'
--open nvim-tree with leader+t --open nvim-tree with leader+t
map('n', '<leader>t', ':NvimTreeToggle<CR>', opts) map('n', '<leader>t', ':NvimTreeToggle<CR>', opts)
--telescope stuff --telescope stuff
map('n', '<leader>ff', ':Telescope file_browser<CR>', opts) map('n', '<leader>ff', ':lua require "telescope".extensions.file_browser.file_browser()<CR>', opts)
map('n', '<leader>fg', ':Telescope live_grep<CR>', opts) map('n', '<leader>fg', ':Telescope live_grep<CR>', opts)
map('n', '<leader>fb', ':Telescope buffers<CR>', opts) map('n', '<leader>fb', ':Telescope buffers<CR>', opts)
map('n', '<leader>fm', ':Telescope marks<CR>', opts) map('n', '<leader>fm', ':Telescope marks<CR>', opts)

View file

@ -109,6 +109,7 @@ return require('packer').startup(function(use)
{'nvim-treesitter/nvim-treesitter'}, {'nvim-treesitter/nvim-treesitter'},
{'nvim-telescope/telescope-fzf-native.nvim', run = 'make' }, {'nvim-telescope/telescope-fzf-native.nvim', run = 'make' },
{'nvim-telescope/telescope-symbols.nvim'}, {'nvim-telescope/telescope-symbols.nvim'},
{'https://github.com/nvim-telescope/telescope-file-browser.nvim'},
}, },
config=function() config=function()
require'telescope'.load_extension('fzf') require'telescope'.load_extension('fzf')