From 51a51352977d8cec2ae2429101212a56e9a9ea56 Mon Sep 17 00:00:00 2001 From: Gabe Venberg Date: Fri, 7 Jan 2022 16:26:30 -0600 Subject: [PATCH] new file browser for neovim telescope. --- neovim/.config/nvim/init.lua | 2 +- neovim/.config/nvim/lua/packages.lua | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/neovim/.config/nvim/init.lua b/neovim/.config/nvim/init.lua index a44a38c..d8833a6 100644 --- a/neovim/.config/nvim/init.lua +++ b/neovim/.config/nvim/init.lua @@ -92,7 +92,7 @@ vim.cmd 'colorscheme moonfly' --open nvim-tree with leader+t map('n', 't', ':NvimTreeToggle', opts) --telescope stuff - map('n', 'ff', ':Telescope file_browser', opts) + map('n', 'ff', ':lua require "telescope".extensions.file_browser.file_browser()', opts) map('n', 'fg', ':Telescope live_grep', opts) map('n', 'fb', ':Telescope buffers', opts) map('n', 'fm', ':Telescope marks', opts) diff --git a/neovim/.config/nvim/lua/packages.lua b/neovim/.config/nvim/lua/packages.lua index 9771f4c..cfbbee4 100644 --- a/neovim/.config/nvim/lua/packages.lua +++ b/neovim/.config/nvim/lua/packages.lua @@ -109,6 +109,7 @@ return require('packer').startup(function(use) {'nvim-treesitter/nvim-treesitter'}, {'nvim-telescope/telescope-fzf-native.nvim', run = 'make' }, {'nvim-telescope/telescope-symbols.nvim'}, + {'https://github.com/nvim-telescope/telescope-file-browser.nvim'}, }, config=function() require'telescope'.load_extension('fzf')