feat(pick): move pickers to extras telescope & fzf-lua and include telescope by default

This commit is contained in:
Folke Lemaitre 2024-06-12 14:01:31 +02:00
parent 4b9e4edbb1
commit b2b6ff0738
7 changed files with 309 additions and 266 deletions

View file

@ -32,6 +32,7 @@ local deprecated = {
toggle_diagnostics = { "toggle", "diagnostics" },
toggle_number = { "toggle", "number" },
fg = "ui",
telescope = "pick",
}
setmetatable(M, {
@ -78,8 +79,10 @@ end
---@param extra string
function M.has_extra(extra)
local Config = require("lazyvim.config")
local modname = "lazyvim.plugins.extras." .. extra
return vim.tbl_contains(require("lazy.core.config").spec.modules, modname)
or vim.tbl_contains(Config.json.data.extras, modname)
end
---@param fn fun()