{"id":27215838,"url":"https://github.com/melekes/vim-erlang-spec","last_synced_at":"2025-04-10T04:45:15.890Z","repository":{"id":31614204,"uuid":"35179220","full_name":"melekes/vim-erlang-spec","owner":"melekes","description":"Generate specifications for your Erlang functions","archived":false,"fork":false,"pushed_at":"2017-01-14T09:51:29.000Z","size":11,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-22T10:16:08.123Z","etag":null,"topics":["erlang","vim-plugin"],"latest_commit_sha":null,"homepage":null,"language":"VimL","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/melekes.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}},"created_at":"2015-05-06T19:42:53.000Z","updated_at":"2017-01-14T09:51:30.000Z","dependencies_parsed_at":"2022-09-10T06:40:54.341Z","dependency_job_id":null,"html_url":"https://github.com/melekes/vim-erlang-spec","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melekes%2Fvim-erlang-spec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melekes%2Fvim-erlang-spec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melekes%2Fvim-erlang-spec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melekes%2Fvim-erlang-spec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/melekes","download_url":"https://codeload.github.com/melekes/vim-erlang-spec/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248161237,"owners_count":21057552,"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":["erlang","vim-plugin"],"created_at":"2025-04-10T04:45:15.494Z","updated_at":"2025-04-10T04:45:15.882Z","avatar_url":"https://github.com/melekes.png","language":"VimL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vim-erlang-spec\n\nGenerate specifications for your Erlang functions.\n\nWhen you are inside the function, call `:ErlangSpec` and this script will\nproduce specification for it. It won't fill in the argument types for you,\nthough.\n\n[![asciicast](https://asciinema.org/a/19604.png)](https://asciinema.org/a/19604?autoplay=1)\n\n## Installation\n\n- [Pathogen][1] `git clone https://github.com/melekes/vim-erlang-spec ~/.vim/bundle/vim-erlang-spec`\n- [Vundle][2] `Bundle 'melekes/vim-erlang-spec'`\n- [NeoBundle][3] `NeoBundle 'melekes/vim-erlang-spec'`\n\nAdd a mapping to your ~/.vimrc (change the key to suit your taste):\n\n    nnoremap \u003cleader\u003es :ErlangSpec\u003cCR\u003e\n\n## Alternative way - TypEr\n\nIf you are new to Erlang, you may be not aware of TypEr - tool, which can be\nused to generate type annotations for functions. You can read about it\n[here](http://learnyousomeerlang.com/types-or-lack-thereof) or in the \"Erlang\nProgramming\" book (\"TypEr: Success Types and Type Inference\").\n\n## TODO\n\n- [ ] transform record to record type (`#person{name=Name}` =\u003e `#person{}`)\n- [ ] parse `is_integer` and other simple guards in when block (`f(N, _) when is_integer(N)` =\u003e `f(N, _) -\u003e any() when N :: integer()`)\n\nAny comments or suggestions? Feel free to open an issue and we will discuss them.\n\n[1]: https://github.com/tpope/vim-pathogen\n[2]: https://github.com/gmarik/vundle\n[3]: https://github.com/Shougo/neobundle.vim\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmelekes%2Fvim-erlang-spec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmelekes%2Fvim-erlang-spec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmelekes%2Fvim-erlang-spec/lists"}