feat(config): configs for telescope extensions

This commit is contained in:
vlaw 2022-05-09 19:54:02 +08:00 committed by siduck
parent c0ca91cb92
commit 4fa0b4ae7d
2 changed files with 4 additions and 1 deletions

View file

@ -41,6 +41,9 @@ M.plugins = {
statusline = { statusline = {
separator_style = "default", -- default/round/slant/block/arrow separator_style = "default", -- default/round/slant/block/arrow
}, },
telescope = {
extensions = { "themes", "terms" }
}
}, },
-- add, modify, remove plugins -- add, modify, remove plugins

View file

@ -61,7 +61,7 @@ options = nvchad.load_override(options, "nvim-telescope/telescope.nvim")
telescope.setup(options) telescope.setup(options)
-- load extensions -- load extensions
local extensions = { "themes", "terms" } local extensions = nvchad.load_config().plugins.options.telescope.extensions
pcall(function() pcall(function()
for _, ext in ipairs(extensions) do for _, ext in ipairs(extensions) do