~tristan957/dotfiles

d36891cbab3a15948ce5f15409370ff454309746 — Tristan Partin 4 months ago 859a622
Fix removal of file_browser in Telescope
2 files changed, 6 insertions(+), 4 deletions(-)

M nvim/.config/nvim/lua/plugins.lua
M nvim/.config/nvim/lua/tristan957/telescope.lua
M nvim/.config/nvim/lua/plugins.lua => nvim/.config/nvim/lua/plugins.lua +2 -1
@@ 131,10 131,11 @@ require("packer").startup({
			"nvim-telescope/telescope.nvim",
			requires = {
				{ "nvim-lua/plenary.nvim" },
				{ "nvim-telescope/telescope-file-browser.nvim" },
				{ "nvim-telescope/telescope-fzf-native.nvim", run = "make" },
				{ "nvim-telescope/telescope-packer.nvim" },
				{ "nvim-telescope/telescope-project.nvim" },
				{ "nvim-telescope/telescope-ui-select.nvim" },
				{ "nvim-telescope/telescope-packer.nvim" },
			},
			config = function()
				require("tristan957.telescope")

M nvim/.config/nvim/lua/tristan957/telescope.lua => nvim/.config/nvim/lua/tristan957/telescope.lua +4 -3
@@ 21,10 21,10 @@ require("telescope").setup({
	},
	pickers = {
		find_files = themes.get_dropdown({ previewer = false, prompt_title = "Files", hidden = true }),
		file_browser = themes.get_dropdown({ previewer = false, dir_icon = "📁", hidden = true }),
		git_files = themes.get_dropdown({ previewer = false, prompt_title = "Files" }),
	},
	extensions = {
		file_browser = themes.get_dropdown({ previewer = false, dir_icon = "📁", hidden = true }),
		fzf = {
			fuzzy = true,
			override_generic_sorter = false,


@@ 36,9 36,10 @@ require("telescope").setup({
	},
})

require("telescope").load_extension("file_browser")
require("telescope").load_extension("fzf")
require("telescope").load_extension("ui-select")
require("telescope").load_extension("packer")
require("telescope").load_extension("ui-select")

M.project_files = function()
	local ok = pcall(builtin.git_files, {})


@@ 68,7 69,7 @@ vim.api.nvim_set_keymap(
vim.api.nvim_set_keymap(
	"n",
	"<leader>fb",
	"<cmd>lua require('telescope.builtin').file_browser()<cr>",
	"<cmd>lua require('telescope').extensions.file_browser.file_browser()<cr>",
	{ noremap = true, silent = true }
)
vim.api.nvim_set_keymap(