{"id":13896351,"url":"https://github.com/fischerling/vis-spellcheck","last_synced_at":"2025-07-17T12:33:11.429Z","repository":{"id":54100545,"uuid":"87537720","full_name":"fischerling/vis-spellcheck","owner":"fischerling","description":"Spellcheck plugin for the vis editor","archived":false,"fork":false,"pushed_at":"2024-05-24T12:58:36.000Z","size":95,"stargazers_count":17,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-07T18:39:25.491Z","etag":null,"topics":["lua","spellchecker","vis-editor"],"latest_commit_sha":null,"homepage":"https://gitlab.com/muhq/vis-spellcheck","language":"Lua","has_issues":false,"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/fischerling.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"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,"publiccode":null,"codemeta":null}},"created_at":"2017-04-07T11:11:41.000Z","updated_at":"2024-07-01T06:10:20.000Z","dependencies_parsed_at":"2024-04-25T15:55:56.205Z","dependency_job_id":"87491c32-f063-4aed-a74d-4351e5ae447d","html_url":"https://github.com/fischerling/vis-spellcheck","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/fischerling%2Fvis-spellcheck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fischerling%2Fvis-spellcheck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fischerling%2Fvis-spellcheck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fischerling%2Fvis-spellcheck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fischerling","download_url":"https://codeload.github.com/fischerling/vis-spellcheck/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226265521,"owners_count":17597222,"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":["lua","spellchecker","vis-editor"],"created_at":"2024-08-06T18:02:51.382Z","updated_at":"2024-11-25T02:30:21.987Z","avatar_url":"https://github.com/fischerling.png","language":"Lua","readme":"# vis-spellcheck\n\nA spellchecking lua plugin for the [vis editor](https://github.com/martanne/vis).\n\n## Installation\n\n1. Download `spellcheck.lua` or clone this repository into your plugin directory\n2. Load the plugin in your `visrc.lua` with `require('plugins/vis-spellcheck')`\n\n## Usage\n\n+ To enable highlighting of misspelled words press `\u003cCtrl-w\u003ee` in normal mode.\n+ To disable highlighting press `\u003cCtrl-w\u003ed` in normal mode.\n+ To toggle highlighting press `\u003cF7\u003e` in normal mode.\n+ To correct the word under the cursor press `\u003cCtrl+w\u003ew` in normal mode.\n+ To ignore the word under the cursor press `\u003cCtrl+w\u003ei` in normal mode.\n+ To add the word under the cursor to the user dictionary press '\u003cCtrl+w\u003ea' in normal mode.\n\n## Configuration\n\nThe module table returned from `require(...)` has some configuration options:\n\n* `cmd`: cmd that is passed to popen() and must return word corrections in Ispell format.\n\t* default: `enchant -d %s` \n* `list_cmd`: cmd that is passed to `popen()` and must output a list of misspelled words.\n\t* default: `enchant -l -d %s` \n* `default_lang`: The name of the used dictionary if the opened file does not specify one. The selected language is inserted in the cmd-strings at `%s`.\n\t* default: `$LANG` or `en_US`\n* `typo_style`: The style string with which misspellings should be highlighted when using the _full viewport_ method\n\t* default: `fore:red`\n* `check_tokens`: A table mapping all token names we consider for spellchecking to true\n\t* default: `{[vis.lexers.STRING]=true, [vis.lexers.COMMENT]=true, [vis.lexers.DEFAULT]=true}`\n* `disable_syntax_awareness`: Disable the syntax aware spellchecking and use always _full viewport_\n\t* default: `false`\n\nA possible configuration could look like this:\n\n\tspellcheck = require(...)\n\tspellcheck.cmd = \"aspell -l %s -a\"\n\tspellcheck.list_cmd = \"aspell list -l %s -a\"\n\tspellcheck.default_lang = \"de_DE\"\n\nChanging language during runtime:\n\n\t:set spelllang en_US\n\n","funding_links":[],"categories":["Lua"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffischerling%2Fvis-spellcheck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffischerling%2Fvis-spellcheck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffischerling%2Fvis-spellcheck/lists"}