{"id":19600053,"url":"https://github.com/nvim-neorg/lua-utils.nvim","last_synced_at":"2025-06-26T23:06:23.301Z","repository":{"id":222990197,"uuid":"758922430","full_name":"nvim-neorg/lua-utils.nvim","owner":"nvim-neorg","description":"A small, curated set of utilities for Neovim plugins.","archived":false,"fork":false,"pushed_at":"2024-02-17T13:40:19.000Z","size":13,"stargazers_count":26,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-05T01:32:14.369Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nvim-neorg.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-02-17T13:27:02.000Z","updated_at":"2025-01-18T00:42:02.000Z","dependencies_parsed_at":"2024-02-17T14:31:36.300Z","dependency_job_id":"3f055980-91b9-4857-b7ad-a8b5fa7e269a","html_url":"https://github.com/nvim-neorg/lua-utils.nvim","commit_stats":null,"previous_names":["nvim-neorg/lua-utils.nvim"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nvim-neorg%2Flua-utils.nvim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nvim-neorg%2Flua-utils.nvim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nvim-neorg%2Flua-utils.nvim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nvim-neorg%2Flua-utils.nvim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nvim-neorg","download_url":"https://codeload.github.com/nvim-neorg/lua-utils.nvim/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251171579,"owners_count":21547112,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T09:13:25.396Z","updated_at":"2025-04-27T16:32:14.408Z","avatar_url":"https://github.com/nvim-neorg.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A Collection of Lua Utilities for Neovim\n\nThis repository contains a small set of nicities for performing repetitive tasks within Neovim.\nThis set may shrink further as the features are included in other, larger \"utility kits\".\n\nThe code you see in this repository is primarily used within [Neorg](https://github.com/nvim-neorg/neorg).\nAll functions are annotated using [LuaCATS](https://luals.github.io/wiki/annotations).\n\nThe highlight of the repository is the `match` function, allowing for complex testing of conditions\nin a similar fashion to e.g. Rust. Below is an example:\n```lua\nlocal match = require(\"lua-utils\").match\n\nlocal my_string = \"possible-value\"\n\n--- @type integer|string|table\nlocal transformed_value = match(my_string) {\n    [\"possible-value\"] = 10, -- Simple return type.\n    [{ \"value1\", \"value2\" }] = \"special-case\", -- Handling of many cases.\n    _ = function() -- Functions will be automatically invoked and their return values propagated.\n        print(\"Error: invalid value provided!\")\n        return {}\n    end,\n}\n\nprint(transformed_value)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnvim-neorg%2Flua-utils.nvim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnvim-neorg%2Flua-utils.nvim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnvim-neorg%2Flua-utils.nvim/lists"}