From 4fa0b4ae7dfb493b3bcc15a1e9ca2646a9daa45f Mon Sep 17 00:00:00 2001 From: vlaw Date: Mon, 9 May 2022 19:54:02 +0800 Subject: [PATCH] feat(config): configs for telescope extensions --- lua/core/default_config.lua | 3 +++ lua/plugins/configs/telescope.lua | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lua/core/default_config.lua b/lua/core/default_config.lua index 3168638..21ebfb8 100644 --- a/lua/core/default_config.lua +++ b/lua/core/default_config.lua @@ -41,6 +41,9 @@ M.plugins = { statusline = { separator_style = "default", -- default/round/slant/block/arrow }, + telescope = { + extensions = { "themes", "terms" } + } }, -- add, modify, remove plugins diff --git a/lua/plugins/configs/telescope.lua b/lua/plugins/configs/telescope.lua index 5e052f6..1970cc8 100644 --- a/lua/plugins/configs/telescope.lua +++ b/lua/plugins/configs/telescope.lua @@ -61,7 +61,7 @@ options = nvchad.load_override(options, "nvim-telescope/telescope.nvim") telescope.setup(options) -- load extensions -local extensions = { "themes", "terms" } +local extensions = nvchad.load_config().plugins.options.telescope.extensions pcall(function() for _, ext in ipairs(extensions) do