mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-22 12:31:07 +00:00
fix(mini): update mini plugin references from echasnovski to nvim-mini (#6374)
Updates all `mini.nvim` plugin references to use the new `nvim-mini` organization namespace instead of the legacy `echasnovski` namespace across all LazyVim configuration files. ## Description https://github.com/nvim-mini/mini.nvim/discussions/1970 ## Checklist - [x] I've read the [CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md) guidelines. --------- Co-authored-by: Folke Lemaitre <folke.lemaitre@gmail.com>
This commit is contained in:
parent
848dd3132a
commit
ae3aaf2dd3
21 changed files with 36 additions and 27 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
return {
|
return {
|
||||||
-- auto pairs
|
-- auto pairs
|
||||||
{
|
{
|
||||||
"echasnovski/mini.pairs",
|
"nvim-mini/mini.pairs",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
opts = {
|
opts = {
|
||||||
modes = { insert = true, command = true, terminal = false },
|
modes = { insert = true, command = true, terminal = false },
|
||||||
|
|
@ -29,7 +29,7 @@ return {
|
||||||
|
|
||||||
-- Better text-objects
|
-- Better text-objects
|
||||||
{
|
{
|
||||||
"echasnovski/mini.ai",
|
"nvim-mini/mini.ai",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
opts = function()
|
opts = function()
|
||||||
local ai = require("mini.ai")
|
local ai = require("mini.ai")
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"echasnovski/mini.comment",
|
"nvim-mini/mini.comment",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
opts = {
|
opts = {
|
||||||
options = {
|
options = {
|
||||||
|
|
|
||||||
|
|
@ -4,14 +4,14 @@ if lazyvim_docs then
|
||||||
vim.g.lazyvim_mini_snippets_in_completion = true
|
vim.g.lazyvim_mini_snippets_in_completion = true
|
||||||
|
|
||||||
-- NOTE: Please also read:
|
-- NOTE: Please also read:
|
||||||
-- https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-snippets.md#expand
|
-- https://github.com/nvim-mini/mini.nvim/blob/main/readmes/mini-snippets.md#expand
|
||||||
-- :h MiniSnippets-session
|
-- :h MiniSnippets-session
|
||||||
|
|
||||||
-- Example override for your own config:
|
-- Example override for your own config:
|
||||||
--[[
|
--[[
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"echasnovski/mini.snippets",
|
"nvim-mini/mini.snippets",
|
||||||
opts = function(_, opts)
|
opts = function(_, opts)
|
||||||
-- By default, for opts.snippets, the extra for mini.snippets only adds gen_loader.from_lang()
|
-- By default, for opts.snippets, the extra for mini.snippets only adds gen_loader.from_lang()
|
||||||
-- This provides a sensible quickstart, integrating with friendly-snippets
|
-- This provides a sensible quickstart, integrating with friendly-snippets
|
||||||
|
|
@ -63,7 +63,7 @@ return {
|
||||||
-- add mini.snippets
|
-- add mini.snippets
|
||||||
desc = "Manage and expand snippets (alternative to Luasnip)",
|
desc = "Manage and expand snippets (alternative to Luasnip)",
|
||||||
{
|
{
|
||||||
"echasnovski/mini.snippets",
|
"nvim-mini/mini.snippets",
|
||||||
event = "InsertEnter", -- don't depend on other plugins to load...
|
event = "InsertEnter", -- don't depend on other plugins to load...
|
||||||
dependencies = "rafamadriz/friendly-snippets",
|
dependencies = "rafamadriz/friendly-snippets",
|
||||||
opts = function()
|
opts = function()
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
-- to select the text inside, change or modify the surrounding characters,
|
-- to select the text inside, change or modify the surrounding characters,
|
||||||
-- and more.
|
-- and more.
|
||||||
return {
|
return {
|
||||||
"echasnovski/mini.surround",
|
"nvim-mini/mini.surround",
|
||||||
keys = function(_, keys)
|
keys = function(_, keys)
|
||||||
-- Populate the keys based on the user's options
|
-- Populate the keys based on the user's options
|
||||||
local opts = LazyVim.opts("mini.surround")
|
local opts = LazyVim.opts("mini.surround")
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ return {
|
||||||
|
|
||||||
-- rename surround mappings from gs to gz to prevent conflict with leap
|
-- rename surround mappings from gs to gz to prevent conflict with leap
|
||||||
{
|
{
|
||||||
"echasnovski/mini.surround",
|
"nvim-mini/mini.surround",
|
||||||
optional = true,
|
optional = true,
|
||||||
opts = {
|
opts = {
|
||||||
mappings = {
|
mappings = {
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ return {
|
||||||
|
|
||||||
-- setup mini.diff
|
-- setup mini.diff
|
||||||
{
|
{
|
||||||
"echasnovski/mini.diff",
|
"nvim-mini/mini.diff",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
keys = {
|
keys = {
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
return {
|
return {
|
||||||
"echasnovski/mini.files",
|
"nvim-mini/mini.files",
|
||||||
opts = {
|
opts = {
|
||||||
windows = {
|
windows = {
|
||||||
preview = true,
|
preview = true,
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"echasnovski/mini.move",
|
"nvim-mini/mini.move",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
opts = {},
|
opts = {},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -178,7 +178,7 @@ return {
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"echasnovski/mini.starter",
|
"nvim-mini/mini.starter",
|
||||||
optional = true,
|
optional = true,
|
||||||
opts = function(_, opts)
|
opts = function(_, opts)
|
||||||
local items = {
|
local items = {
|
||||||
|
|
|
||||||
|
|
@ -139,7 +139,7 @@ return {
|
||||||
|
|
||||||
-- Filetype icons
|
-- Filetype icons
|
||||||
{
|
{
|
||||||
"echasnovski/mini.icons",
|
"nvim-mini/mini.icons",
|
||||||
opts = {
|
opts = {
|
||||||
file = {
|
file = {
|
||||||
[".go-version"] = { glyph = "", hl = "MiniIconsBlue" },
|
[".go-version"] = { glyph = "", hl = "MiniIconsBlue" },
|
||||||
|
|
|
||||||
|
|
@ -263,7 +263,7 @@ return {
|
||||||
|
|
||||||
-- Filetype icons
|
-- Filetype icons
|
||||||
{
|
{
|
||||||
"echasnovski/mini.icons",
|
"nvim-mini/mini.icons",
|
||||||
opts = {
|
opts = {
|
||||||
file = {
|
file = {
|
||||||
[".eslintrc.js"] = { glyph = "", hl = "MiniIconsYellow" },
|
[".eslintrc.js"] = { glyph = "", hl = "MiniIconsYellow" },
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ return {
|
||||||
|
|
||||||
-- setup animate
|
-- setup animate
|
||||||
{
|
{
|
||||||
"echasnovski/mini.animate",
|
"nvim-mini/mini.animate",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
cond = vim.g.neovide == nil,
|
cond = vim.g.neovide == nil,
|
||||||
opts = function(_, opts)
|
opts = function(_, opts)
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ return {
|
||||||
-- code, this highlights the current level of indentation, and animates
|
-- code, this highlights the current level of indentation, and animates
|
||||||
-- the highlighting.
|
-- the highlighting.
|
||||||
{
|
{
|
||||||
"echasnovski/mini.indentscope",
|
"nvim-mini/mini.indentscope",
|
||||||
version = false, -- wait till new 0.7.0 release to put it back on semver
|
version = false, -- wait till new 0.7.0 release to put it back on semver
|
||||||
event = "LazyFile",
|
event = "LazyFile",
|
||||||
opts = {
|
opts = {
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ return {
|
||||||
|
|
||||||
-- enable mini.starter
|
-- enable mini.starter
|
||||||
{
|
{
|
||||||
"echasnovski/mini.starter",
|
"nvim-mini/mini.starter",
|
||||||
version = false, -- wait till new 0.7.0 release to put it back on semver
|
version = false, -- wait till new 0.7.0 release to put it back on semver
|
||||||
event = "VimEnter",
|
event = "VimEnter",
|
||||||
opts = function()
|
opts = function()
|
||||||
|
|
@ -67,7 +67,7 @@ return {
|
||||||
local ms = (math.floor(stats.startuptime * 100 + 0.5) / 100)
|
local ms = (math.floor(stats.startuptime * 100 + 0.5) / 100)
|
||||||
local pad_footer = string.rep(" ", 8)
|
local pad_footer = string.rep(" ", 8)
|
||||||
starter.config.footer = pad_footer .. "⚡ Neovim loaded " .. stats.count .. " plugins in " .. ms .. "ms"
|
starter.config.footer = pad_footer .. "⚡ Neovim loaded " .. stats.count .. " plugins in " .. ms .. "ms"
|
||||||
-- INFO: based on @echasnovski's recommendation (thanks a lot!!!)
|
-- INFO: based on @nvim-mini's recommendation (thanks a lot!!!)
|
||||||
if vim.bo[ev.buf].filetype == "ministarter" then
|
if vim.bo[ev.buf].filetype == "ministarter" then
|
||||||
pcall(starter.refresh)
|
pcall(starter.refresh)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ return {
|
||||||
specs = {
|
specs = {
|
||||||
-- disable mini.animate cursor
|
-- disable mini.animate cursor
|
||||||
{
|
{
|
||||||
"echasnovski/mini.animate",
|
"nvim-mini/mini.animate",
|
||||||
optional = true,
|
optional = true,
|
||||||
opts = {
|
opts = {
|
||||||
cursor = { enable = false },
|
cursor = { enable = false },
|
||||||
|
|
|
||||||
|
|
@ -135,7 +135,7 @@ return {
|
||||||
|
|
||||||
-- Filetype icons
|
-- Filetype icons
|
||||||
{
|
{
|
||||||
"echasnovski/mini.icons",
|
"nvim-mini/mini.icons",
|
||||||
opts = {
|
opts = {
|
||||||
file = {
|
file = {
|
||||||
[".chezmoiignore"] = { glyph = "", hl = "MiniIconsGrey" },
|
[".chezmoiignore"] = { glyph = "", hl = "MiniIconsGrey" },
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ local M = {}
|
||||||
M.hl = {}
|
M.hl = {}
|
||||||
|
|
||||||
M.plugin = {
|
M.plugin = {
|
||||||
"echasnovski/mini.hipatterns",
|
"nvim-mini/mini.hipatterns",
|
||||||
recommended = true,
|
recommended = true,
|
||||||
desc = "Highlight colors in your code. Also includes Tailwind CSS support.",
|
desc = "Highlight colors in your code. Also includes Tailwind CSS support.",
|
||||||
event = "LazyFile",
|
event = "LazyFile",
|
||||||
|
|
|
||||||
|
|
@ -134,7 +134,7 @@ return {
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"echasnovski/mini.starter",
|
"nvim-mini/mini.starter",
|
||||||
optional = true,
|
optional = true,
|
||||||
opts = function(_, opts)
|
opts = function(_, opts)
|
||||||
local items = {
|
local items = {
|
||||||
|
|
|
||||||
|
|
@ -245,7 +245,7 @@ return {
|
||||||
|
|
||||||
-- icons
|
-- icons
|
||||||
{
|
{
|
||||||
"echasnovski/mini.icons",
|
"nvim-mini/mini.icons",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
opts = {
|
opts = {
|
||||||
file = {
|
file = {
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
local Meta = require("lazy.core.meta")
|
||||||
local Plugin = require("lazy.core.plugin")
|
local Plugin = require("lazy.core.plugin")
|
||||||
|
|
||||||
---@class lazyvim.util.plugin
|
---@class lazyvim.util.plugin
|
||||||
|
|
@ -102,9 +103,17 @@ function M.fix_imports()
|
||||||
end
|
end
|
||||||
|
|
||||||
function M.fix_renames()
|
function M.fix_renames()
|
||||||
Plugin.Spec.add = LazyVim.inject.args(Plugin.Spec.add, function(self, plugin)
|
---@param plugin LazyPluginSpec
|
||||||
|
Meta.add = LazyVim.inject.args(Meta.add, function(self, plugin)
|
||||||
if type(plugin) == "table" then
|
if type(plugin) == "table" then
|
||||||
if M.renames[plugin[1]] then
|
local name = plugin[1]
|
||||||
|
if not name then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
if name:find("echasnovski") then
|
||||||
|
M.renames[name] = name:gsub("echasnovski", "nvim-mini")
|
||||||
|
end
|
||||||
|
if M.renames[name] then
|
||||||
LazyVim.warn(
|
LazyVim.warn(
|
||||||
("Plugin `%s` was renamed to `%s`.\nPlease update your config for `%s`"):format(
|
("Plugin `%s` was renamed to `%s`.\nPlease update your config for `%s`"):format(
|
||||||
plugin[1],
|
plugin[1],
|
||||||
|
|
@ -113,7 +122,7 @@ function M.fix_renames()
|
||||||
),
|
),
|
||||||
{ title = "LazyVim" }
|
{ title = "LazyVim" }
|
||||||
)
|
)
|
||||||
plugin[1] = M.renames[plugin[1]]
|
plugin[1] = M.renames[name]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,6 @@ require("lazy.minit").setup({
|
||||||
{ "nvim-treesitter/nvim-treesitter" },
|
{ "nvim-treesitter/nvim-treesitter" },
|
||||||
{ "mason-org/mason-lspconfig.nvim", version = "^1.0.0" },
|
{ "mason-org/mason-lspconfig.nvim", version = "^1.0.0" },
|
||||||
{ "mason-org/mason.nvim", version = "^1.0.0" },
|
{ "mason-org/mason.nvim", version = "^1.0.0" },
|
||||||
{ "echasnovski/mini.icons", opts = {} },
|
{ "nvim-mini/mini.icons", opts = {} },
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue