{ "name": "neovim", "version": "0.12.5", "summary": "Neovim: the Vim-based text editor with Lua, tree-sitter syntax trees and a built-in terminal; nvim with its runtime and six grammars", "category": "editor", "license": "Apache-2.0 AND Vim", "homepage": "https://neovim.io/", "source": { "url": "https://github.com/neovim/neovim/archive/v0.12.5.tar.gz", "sha256": "a810c95332317bd0017e1ca07e376a8472c79075cbed00fa3737d190a8a0a45a" }, "vendor": "vendor.txt", "watch": {"kind": "github-release", "repo": "neovim/neovim", "pin": "0.12"}, "deps": [ "luajit", "libuv", "luv", "lpeg", "tree-sitter", "utf8proc", "unibilium" ], "env_packages": [], "static": false, "nss": false, "check": "t=$(mktemp -d) && trap 'rm -rf \"$t\"' EXIT && bin/nvim --version | first > \"$t/v\" && cat > \"$t/c.lua\" <<'LUA'\nlocal out = {}\nlocal fired = false\nlocal tm = vim.uv.new_timer()\ntm:start(10, 0, function() fired = true tm:close() end)\nvim.wait(2000, function() return fired end)\nout[#out + 1] = 'luv timer ' .. tostring(fired)\nlocal p = vim.treesitter.get_string_parser('int main(void) { return 42; }', 'c')\nlocal root = p:parse()[1]:root()\nout[#out + 1] = 'C tree ' .. root:type() .. '/' .. root:named_child(0):type()\nlocal ok = {}\nfor _, l in ipairs({ 'c', 'lua', 'vim', 'vimdoc', 'query', 'markdown', 'markdown_inline' }) do\n if vim.treesitter.language.add(l) then ok[#ok + 1] = l end\nend\nout[#out + 1] = #ok .. ' grammars'\nout[#out + 1] = 'lpeg ' .. vim.lpeg.match(vim.lpeg.R('09') ^ 1 / tonumber, '2026')\nout[#out + 1] = 'width ' .. vim.fn.strdisplaywidth('日本😀')\nlocal f = os.tmpname()\nvim.api.nvim_buf_set_lines(0, 0, -1, false, { 'nas', 'bucket', 'code' })\nvim.cmd('sort')\nvim.cmd('silent write! ' .. f)\nlocal fh = io.open(f)\nout[#out + 1] = 'sorted ' .. fh:read('*a'):gsub('\\n', ' ')\nfh:close()\nos.remove(f)\nio.write(table.concat(out, ', '), '\\n')\nLUA\nbin/nvim --clean --headless -l \"$t/c.lua\" > \"$t/out\" 2>&1; cat \"$t/out\" >&2; printf '%s: %s\\n' \"$(cat \"$t/v\")\" \"$(cat \"$t/out\")\" && has -x 'NVIM v0.12.5' < \"$t/v\" && has 'luv timer true, C tree translation_unit/function_definition, 7 grammars, lpeg 2026, width 6, sorted bucket code nas ' < \"$t/out\"" }