refactor(nvim): migrate mini.deps to vim.pack and MiniMisc.safely#66
Merged
Conversation
mini.deps development is frozen in the latest mini.nvim, which recommends
vim.pack for plugin management and MiniMisc.safely() in place of
MiniDeps.now()/later().
- init.lua: install mini.nvim via vim.pack; set up mini.misc early so the
MiniMisc global is available before other modules load
- replace MiniDeps.add(...) with vim.pack.add(...); the treesitter
post_checkout hook is reproduced with a PackChanged autocmd, and the
ts-comments depends edge is covered by the existing treesitter add
- replace now()/later() with MiniMisc.safely('now'/'later', ...) everywhere
- drop the redundant mini.misc.setup() in nav.lua and the MiniDeps luarc global
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RhQR9TdszBTQ2XEZMbbCoz
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
最新の
mini.nvimでmini.depsの開発が凍結 (frozen) されました。公式ドキュメントは Neovim 0.12+ では以下を推奨しています:vim.packMiniDeps.now()/MiniDeps.later()の代替:MiniMisc.safely('now'/'later', fn)これを受けて Neovim 設定を移行します。
変更内容
init.lua: ブートストラップを書き換え。mini.nvim本体をvim.pack.addで導入し、require('mini.misc').setup()を他モジュールの読み込み前に実行。MiniMiscグローバルはsetup()で初めて生成されるため、各モジュールでMiniMisc.safelyを使えるよう先に用意する。MiniDeps.add(...)→vim.pack.add(...)hooks.post_checkout(TSUpdate)はPackChangedautocmd で再現。ts-commentsのdepends = { nvim-treesitter }は、treesitter が同じファイルで先に追加済みのため不要。now()/later()→MiniMisc.safely('now'/'later', ...)を全ファイルで適用 (appearance.lua,edit.lua,nav.lua,git.lua,terminal.lua,lsp/init.lua)。nav.lua:init.luaでセットアップ済みになったmini.misc.setup()の重複呼び出しを削除。.luarc.json: 不要になったMiniDepsグローバルを削除。確認事項 / 注意
🤖 Generated with Claude Code
Generated by Claude Code