Add telescope file_browser

This commit is contained in:
ViViDboarder 2022-01-13 13:17:15 -08:00
parent e44c226a70
commit edc6cc173e
2 changed files with 10 additions and 3 deletions

View File

@ -279,6 +279,7 @@ return require("packer").startup({
requires = {
"nvim-lua/plenary.nvim",
"nvim-lua/popup.nvim",
"nvim-telescope/telescope-file-browser.nvim",
},
tag = utils.map_version_rule({
[">=0.6.0"] = nil,

View File

@ -1,3 +1,11 @@
local function load_extensions()
local utils = require("utils")
require("telescope").load_extension("file_browser")
if utils.is_plugin_loaded("nvim-notify") then
require("telescope").load_extension("notify")
end
end
local function config_telescope()
local actions = require("telescope.actions")
require("telescope").setup({
@ -32,9 +40,7 @@ local function config_telescope()
opts
)
if require("utils").is_plugin_loaded("nvim-notify") then
require("telescope").load_extension("notify")
end
load_extensions()
end
config_telescope()