-- Pin refactoring.nvim (LazyVim editor.refactoring extra) on Neovim < 0.12.5. -- -- Since abdcad8 (2026-09-23) refactoring.nvim calls the core vim.pos(buf, row, col) and -- vim.range(buf, start_row, start_col, end_row, end_col). Neovim only takes buf first from -- 0.12.5 on (upstream README: "requires Neovim 0.12.5"); 0.12.0-0.12.4 expect -- vim.range(start_row, start_col, end_row, end_col, { buf = buf }), so every refactor fails -- with "vim/range.lua:98: attempt to index local 'opts' (a number value)". -- 8bcf893 is the parent of abdcad8 and the last upstream commit that ships its own -- refactoring.pos/refactoring.range with the buf-first API; the two commits after it on master -- are CI/docs only. Pinning in the spec (not just lazy-lock.json) keeps :Lazy update from -- moving it back to the broken commit. -- -- Remove this file once Neovim is >= 0.12.5 (the guard below already stops pinning there), -- then run :Lazy update refactoring.nvim. if vim.fn.has("nvim-0.12.5") == 1 then return {} end return { { "ThePrimeagen/refactoring.nvim", commit = "8bcf893eb3871bc87b42adffe2fb9b0b7dc9d328" }, }