{"id":13896164,"url":"https://github.com/jpaulogg/vis-ins-completion","last_synced_at":"2025-07-07T01:36:12.214Z","repository":{"id":221768257,"uuid":"382443488","full_name":"jpaulogg/vis-ins-completion","owner":"jpaulogg","description":"Basic insert mode completion for the vis editor.","archived":false,"fork":false,"pushed_at":"2023-03-10T23:00:41.000Z","size":36,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-13T12:48:58.881Z","etag":null,"topics":["completion","vis-editor","vis-plugin","word-completion"],"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/jpaulogg.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,"publiccode":null,"codemeta":null}},"created_at":"2021-07-02T19:27:15.000Z","updated_at":"2025-02-07T11:56:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"d65b4f63-7650-4d41-b9e6-5b5d20eee381","html_url":"https://github.com/jpaulogg/vis-ins-completion","commit_stats":null,"previous_names":["jpaulogg/vis-ins-completion"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jpaulogg/vis-ins-completion","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpaulogg%2Fvis-ins-completion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpaulogg%2Fvis-ins-completion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpaulogg%2Fvis-ins-completion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpaulogg%2Fvis-ins-completion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jpaulogg","download_url":"https://codeload.github.com/jpaulogg/vis-ins-completion/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpaulogg%2Fvis-ins-completion/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263998699,"owners_count":23541930,"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":["completion","vis-editor","vis-plugin","word-completion"],"created_at":"2024-08-06T18:02:42.209Z","updated_at":"2025-07-07T01:36:12.168Z","avatar_url":"https://github.com/jpaulogg.png","language":"Lua","funding_links":[],"categories":["Lua"],"sub_categories":[],"readme":"## Vis insert completion\nBasic [insert mode completion](https://vimhelp.org/insert.txt.html#ins-completion)\nfor the [vis editor](https://github.com/martanne/vis/). Works in insert and replace\nmodes and supports multiple selections.\n\n### Complete Methods\n* line completion:\n  - mapped to `\u003cC-x\u003e\u003cC-l\u003e`\n* character completion:\n  - mapped to `\u003cC-Up\u003e` and `\u003cC-Down\u003e`\n  - in vim this is mapped to [`\u003cC-E\u003e`](https://vimhelp.org/scroll.txt.html#CTRL-E) and [`\u003cC-Y\u003e`](https://vimhelp.org/scroll.txt.html#CTRL-Y)\n  - need some improvements, specially to handle multi-byte characters.\n* dictionary completion:\n  - mapped to `\u003cC-x\u003e\u003cC-k\u003e`\n  - dictionary must be a new-line separated list of items.\n  - [wl.sh](https://github.com/jpaulogg/scripts/blob/master/wl.sh) is a helper that reads from stdin and prints a new-line separated list of words/WORDS to stdout\n  - default dictionary path: `~/.local/share/dict/{syntax}`.\n  - syntaxes names are the same defined by the [filetype.lua plugin](https://github.com/martanne/vis/blob/master/lua/plugins/filetype.lua)\n* keyword completion:\n  - mapped to `\u003cC-n\u003e`. **Note that this will overwrite standard word completion** [mapping](https://github.com/martanne/vis/blob/master/lua/plugins/complete-word.lua)\n  - this method combine the output of shell commands in the [completeopts](complete-keyword.lua#L4-L13) table.\n  - the default behaviour is to combine word completion and dictionary completion.\n\n### Configuration\nYou can set some options from [init.lua](init.lua) file or from your visrc.lua:\n* [the path used to load the plugins](init.lua#L3)\n* [path to dictionary files](init.lua#L10-L13) - dictionary and keyword completion\n* [number of lines](init.lua#L15) in vis-menu - line completion\n* [list of shell commands](init.lua#L17-L19) - used by keyword completion method.\n\n### Installation\nEach script can be instaled separetaly. For example:\n```bash\nmkdir -p ~/.config/vis/plugins\ncd ~/.config/vis/plugins\ncurl -O https://raw.githubusercontent.com/jpaulogg/vis-ins-completion/master/complete-dict.lua\necho 'require(\"plugins/complete-dict\")' \u003e\u003e ../visrc.lua\n```\n\nTo install all scripts:\n```bash\nmkdir -p ~/.config/vis/plugins\ncd ~/.config/vis/plugins\ngit clone https://github.com/jpaulogg/vis-ins-completion\necho 'require(\"plugins/vis-ins-completion\")' \u003e\u003e ../visrc.lua\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpaulogg%2Fvis-ins-completion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjpaulogg%2Fvis-ins-completion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpaulogg%2Fvis-ins-completion/lists"}