{"id":13896444,"url":"https://github.com/nanotee/nvim-if-lua-compat","last_synced_at":"2025-04-09T19:17:28.542Z","repository":{"id":107007466,"uuid":"299975228","full_name":"nanotee/nvim-if-lua-compat","owner":"nanotee","description":"An if_lua compatibility layer for Neovim","archived":false,"fork":false,"pushed_at":"2021-09-16T20:50:17.000Z","size":73,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-09T19:17:24.462Z","etag":null,"topics":["compatibility","lua","neovim","vim"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nanotee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-09-30T16:03:34.000Z","updated_at":"2024-10-17T08:38:26.000Z","dependencies_parsed_at":"2024-02-10T00:04:11.432Z","dependency_job_id":"5c0fd8be-dcf8-428d-8b23-de53acaceb8e","html_url":"https://github.com/nanotee/nvim-if-lua-compat","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanotee%2Fnvim-if-lua-compat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanotee%2Fnvim-if-lua-compat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanotee%2Fnvim-if-lua-compat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanotee%2Fnvim-if-lua-compat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nanotee","download_url":"https://codeload.github.com/nanotee/nvim-if-lua-compat/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248094988,"owners_count":21046770,"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":["compatibility","lua","neovim","vim"],"created_at":"2024-08-06T18:02:55.910Z","updated_at":"2025-04-09T19:17:28.504Z","avatar_url":"https://github.com/nanotee.png","language":"Lua","funding_links":[],"categories":["Lua"],"sub_categories":[],"readme":"# nvim-if-lua-compat\n\nAn `if_lua` compatibility layer for Neovim (WIP, needs testing)\n\n## Goals\n\nMaintain some amount of compatibility with the existing Vim interface for Lua (see also: [neovim/neovim#12537](https://github.com/neovim/neovim/issues/12537)).\n\n## Progress\n\nItems annotated with an asterisk `*` are only partially supported.\n\n- [x] * `vim.list()` (actually a Lua table, `luaeval()` just makes a copy and transforms it into a Vim list...)\n    - [x] `#l`\n    - [x] `l[k]`\n    - [x] `l()`\n    - [x] `table.insert(l, newitem)`\n    - [x] `table.insert(l, position, newitem)`\n    - [x] `table.remove(l, position)`\n    - [x] `l:add(item)`\n    - [x] `l:insert(item[, pos])`\n- [x] * `vim.dict()` (actually a Lua table, `luaeval()` just makes a copy and transforms it into a Vim dict...)\n    - [x] * `#d` (Only works with Lua 5.2+ or LuaJIT built with 5.2 extensions)\n    - [x] `d.key` or `d['key']`\n    - [x] `d()`\n- [x] * `vim.blob()` (actually a Lua table)\n    - [x] * `#b` (Only works with Lua 5.2+ or LuaJIT built with 5.2 extensions)\n    - [x] `b[k]`\n    - [x] `b:add(bytes)`\n- [x] `vim.funcref()` (exists in Neovim core, but the implementation is different here)\n    - [x] * `#f` (Only works with Lua 5.2+ or LuaJIT built with 5.2 extensions)\n    - [x] `f(...)`\n- [x] `vim.buffer()`\n    - [x] `b()`\n    - [x] * `#b` (Only works with Lua 5.2+ or LuaJIT built with 5.2 extensions)\n    - [x] `b[k]`\n    - [x] `b.name`\n    - [x] `b.fname`\n    - [x] `b.number`\n    - [x] `b:insert(newline[, pos])`\n    - [x] `b:next()`\n    - [x] `b:previous()`\n    - [x] `b:isvalid()`\n- [x] `vim.window()`\n    - [x] `w()`\n    - [x] `w.buffer`\n    - [x] `w.line` (get and set)\n    - [x] `w.col` (get and set)\n    - [x] `w.width` (get and set)\n    - [x] `w.height` (get and set)\n    - [x] `w:next()`\n    - [x] `w:previous()`\n    - [x] `w:isvalid()`\n- [x] `vim.type()`\n    - [x] `list`\n    - [x] `dict`\n    - [x] `blob`\n    - [x] `funcref`\n    - [x] `buffer`\n    - [x] `window`\n- [x] `vim.command()` (alias to `vim.api.nvim_command()`)\n- [x] * `vim.eval()` (alias to `vim.api.nvim_eval()`, doesn't actually return a `vim.list/dict/blob`)\n- [x] `vim.line()` (alias to `vim.api.nvim_get_current_line()`)\n- [x] `vim.beep()`\n- [x] `vim.open()`\n- [x] `vim.call()` (in Neovim core)\n- [x] `vim.fn()` (in Neovim core)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnanotee%2Fnvim-if-lua-compat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnanotee%2Fnvim-if-lua-compat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnanotee%2Fnvim-if-lua-compat/lists"}