[nvim] cleanup: telescope.lua layout

This commit is contained in:
David JULIEN 2023-02-03 09:18:19 +01:00
parent 19af34b75d
commit 58f2ddf866

View File

@ -4,29 +4,30 @@
-- Description : telescope config file -- Description : telescope config file
return { return {
"nvim-telescope/telescope.nvim", {
dependencies = { "nvim-telescope/telescope.nvim",
{ dependencies = {
"nvim-lua/plenary.nvim",
"nvim-telescope/telescope-file-browser.nvim",
{ {
"nvim-telescope/telescope-fzf-native.nvim", "nvim-lua/plenary.nvim",
build = "make", "nvim-telescope/telescope-file-browser.nvim",
lazy = false, {
}, "nvim-telescope/telescope-fzf-native.nvim",
} build = "make"
}, }
opts = {
extensions = {
file_browser = {
theme = "ivy",
hijack_netrw = true,
} }
} },
}, opts = {
config = function(_, opts) extensions = {
require("telescope").setup(opts) file_browser = {
require("telescope").load_extension("fzf") theme = "ivy",
require("telescope").load_extension("file_browser") hijack_netrw = true,
end }
}
},
config = function(_, opts)
require("telescope").setup(opts)
require("telescope").load_extension("fzf")
require("telescope").load_extension("file_browser")
end
}
} }