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:
Sergey Kochetkov
2025-09-15 11:45:00 +02:00
committed by GitHub
parent 848dd3132a
commit ae3aaf2dd3
21 changed files with 36 additions and 27 deletions

View File

@@ -1,7 +1,7 @@
return {
-- auto pairs
{
"echasnovski/mini.pairs",
"nvim-mini/mini.pairs",
event = "VeryLazy",
opts = {
modes = { insert = true, command = true, terminal = false },
@@ -29,7 +29,7 @@ return {
-- Better text-objects
{
"echasnovski/mini.ai",
"nvim-mini/mini.ai",
event = "VeryLazy",
opts = function()
local ai = require("mini.ai")

View File

@@ -1,6 +1,6 @@
return {
{
"echasnovski/mini.comment",
"nvim-mini/mini.comment",
event = "VeryLazy",
opts = {
options = {

View File

@@ -4,14 +4,14 @@ if lazyvim_docs then
vim.g.lazyvim_mini_snippets_in_completion = true
-- 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
-- Example override for your own config:
--[[
return {
{
"echasnovski/mini.snippets",
"nvim-mini/mini.snippets",
opts = function(_, opts)
-- 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
@@ -63,7 +63,7 @@ return {
-- add mini.snippets
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...
dependencies = "rafamadriz/friendly-snippets",
opts = function()

View File

@@ -3,7 +3,7 @@
-- to select the text inside, change or modify the surrounding characters,
-- and more.
return {
"echasnovski/mini.surround",
"nvim-mini/mini.surround",
keys = function(_, keys)
-- Populate the keys based on the user's options
local opts = LazyVim.opts("mini.surround")

View File

@@ -37,7 +37,7 @@ return {
-- rename surround mappings from gs to gz to prevent conflict with leap
{
"echasnovski/mini.surround",
"nvim-mini/mini.surround",
optional = true,
opts = {
mappings = {

View File

@@ -7,7 +7,7 @@ return {
-- setup mini.diff
{
"echasnovski/mini.diff",
"nvim-mini/mini.diff",
event = "VeryLazy",
keys = {
{

View File

@@ -1,5 +1,5 @@
return {
"echasnovski/mini.files",
"nvim-mini/mini.files",
opts = {
windows = {
preview = true,

View File

@@ -1,6 +1,6 @@
return {
{
"echasnovski/mini.move",
"nvim-mini/mini.move",
event = "VeryLazy",
opts = {},
},

View File

@@ -178,7 +178,7 @@ return {
end,
},
{
"echasnovski/mini.starter",
"nvim-mini/mini.starter",
optional = true,
opts = function(_, opts)
local items = {

View File

@@ -139,7 +139,7 @@ return {
-- Filetype icons
{
"echasnovski/mini.icons",
"nvim-mini/mini.icons",
opts = {
file = {
[".go-version"] = { glyph = "", hl = "MiniIconsBlue" },

View File

@@ -263,7 +263,7 @@ return {
-- Filetype icons
{
"echasnovski/mini.icons",
"nvim-mini/mini.icons",
opts = {
file = {
[".eslintrc.js"] = { glyph = "󰱺", hl = "MiniIconsYellow" },

View File

@@ -10,7 +10,7 @@ return {
-- setup animate
{
"echasnovski/mini.animate",
"nvim-mini/mini.animate",
event = "VeryLazy",
cond = vim.g.neovide == nil,
opts = function(_, opts)

View File

@@ -3,7 +3,7 @@ return {
-- code, this highlights the current level of indentation, and animates
-- the highlighting.
{
"echasnovski/mini.indentscope",
"nvim-mini/mini.indentscope",
version = false, -- wait till new 0.7.0 release to put it back on semver
event = "LazyFile",
opts = {

View File

@@ -5,7 +5,7 @@ return {
-- 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
event = "VimEnter",
opts = function()
@@ -67,7 +67,7 @@ return {
local ms = (math.floor(stats.startuptime * 100 + 0.5) / 100)
local pad_footer = string.rep(" ", 8)
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
pcall(starter.refresh)
end

View File

@@ -9,7 +9,7 @@ return {
specs = {
-- disable mini.animate cursor
{
"echasnovski/mini.animate",
"nvim-mini/mini.animate",
optional = true,
opts = {
cursor = { enable = false },

View File

@@ -135,7 +135,7 @@ return {
-- Filetype icons
{
"echasnovski/mini.icons",
"nvim-mini/mini.icons",
opts = {
file = {
[".chezmoiignore"] = { glyph = "", hl = "MiniIconsGrey" },

View File

@@ -4,7 +4,7 @@ local M = {}
M.hl = {}
M.plugin = {
"echasnovski/mini.hipatterns",
"nvim-mini/mini.hipatterns",
recommended = true,
desc = "Highlight colors in your code. Also includes Tailwind CSS support.",
event = "LazyFile",

View File

@@ -134,7 +134,7 @@ return {
},
{
"echasnovski/mini.starter",
"nvim-mini/mini.starter",
optional = true,
opts = function(_, opts)
local items = {

View File

@@ -245,7 +245,7 @@ return {
-- icons
{
"echasnovski/mini.icons",
"nvim-mini/mini.icons",
lazy = true,
opts = {
file = {

View File

@@ -1,3 +1,4 @@
local Meta = require("lazy.core.meta")
local Plugin = require("lazy.core.plugin")
---@class lazyvim.util.plugin
@@ -102,9 +103,17 @@ function M.fix_imports()
end
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 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(
("Plugin `%s` was renamed to `%s`.\nPlease update your config for `%s`"):format(
plugin[1],
@@ -113,7 +122,7 @@ function M.fix_renames()
),
{ title = "LazyVim" }
)
plugin[1] = M.renames[plugin[1]]
plugin[1] = M.renames[name]
end
end
end)

View File

@@ -11,6 +11,6 @@ require("lazy.minit").setup({
{ "nvim-treesitter/nvim-treesitter" },
{ "mason-org/mason-lspconfig.nvim", version = "^1.0.0" },
{ "mason-org/mason.nvim", version = "^1.0.0" },
{ "echasnovski/mini.icons", opts = {} },
{ "nvim-mini/mini.icons", opts = {} },
},
})