{"id":13581549,"url":"https://github.com/rescript-lang/vim-rescript","last_synced_at":"2025-07-30T22:06:13.510Z","repository":{"id":41859593,"uuid":"288295668","full_name":"rescript-lang/vim-rescript","owner":"rescript-lang","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-29T00:58:02.000Z","size":82733,"stargazers_count":155,"open_issues_count":15,"forks_count":15,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-22T03:27:09.627Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Vim Script","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/rescript-lang.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","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},"funding":{"github":"ryyppy","custom":"https://rescript-association.org/donate"}},"created_at":"2020-08-17T22:03:37.000Z","updated_at":"2024-12-24T09:38:54.000Z","dependencies_parsed_at":"2024-01-06T08:05:01.183Z","dependency_job_id":"9b995798-c771-40c8-89b2-aa32b424f14d","html_url":"https://github.com/rescript-lang/vim-rescript","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rescript-lang%2Fvim-rescript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rescript-lang%2Fvim-rescript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rescript-lang%2Fvim-rescript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rescript-lang%2Fvim-rescript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rescript-lang","download_url":"https://codeload.github.com/rescript-lang/vim-rescript/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241005552,"owners_count":19892815,"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-08-01T15:02:05.386Z","updated_at":"2025-02-27T10:49:12.249Z","avatar_url":"https://github.com/rescript-lang.png","language":"Vim Script","readme":"# vim-rescript\n\nVim runtime files for ReScript.\n\n\u003e If you are experiencing any troubles, open an issue or visit our [Forum](https://forum.rescript-lang.org) and ask for guidance.\n\n## Features\n\n- Syntax highlighting for ReSript files\n- Filetype detection for `.res`, `.resi`\n- Basic automatic indentation\n\nSee `:h rescript` for the detailed [helpfile](./doc/rescript.txt).\n\n## Installation\n\n`vim-rescript` can be installed either manually or by using your favourite plugin manager.\n\n```vim\n\" vim-plug\nPlug 'rescript-lang/vim-rescript'\n\n\" Vundle\nPlugin 'rescript-lang/vim-rescript'\n\n\" NeoBundle\nNeoBundle 'rescript-lang/vim-rescript'\n```\n\n```lua\n-- Lazy.nvim\n{ 'rescript-lang/vim-rescript', ft=\"rescript\" }\n```\n\nYou can also pin your installation to specific tags (check our releases [here](https://github.com/rescript-lang/vim-rescript/releases)):\n\nWith Plug:\n\n```vim\nPlug 'rescript-lang/vim-rescript', {'tag': 'v2.1.0'}\n```\n\nWith [Lazy.nvim](https://github.com/folke/lazy.nvim):\n\n```lua\n{ 'rescript-lang/vim-rescript', tag = \"v2.1.0\" }\n```\n\n## Setup LSP\n\nFirst you need install the language server for ReScript from npm\n\n\u003e **Note**\n\u003e If you are using [mason.nvim](https://github.com/williamboman/mason.nvim) you can install the ReScript Language Server using the command `MasonInstall rescript-language-server`\n\n```sh\nnpm install -g @rescript/language-server\n```\n\nThe binary is called `rescript-language-server`\n\n### Neovim LSP builtin\n\nInstall the [nvim-lspconfig](https://github.com/neovim/nvim-lspconfig) package and setup the LSP\n\n```lua\nlocal lspconfig = require('lspconfig')\n\nlspconfig.rescriptls.setup{}\n```\n\nFor more details, see [server configuration](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#rescriptls)\n\n### COC (Vim or Neovim)\n\n(`:h rescript-coc`)\n\nAfter the installation, open your coc config (`:CocConfig`) and add the following configuration:\n\n```json\n\"languageserver\": {\n  \"rescript\": {\n    \"enable\": true,\n    \"module\": \"rescript-language-server\",\n    \"args\": [\"--node-ipc\"],\n    \"filetypes\": [\"rescript\"],\n    \"rootPatterns\": [\"rescript.json\", \"bsconfig.json\"]\n  }\n}\n```\n\n## Credits\n\n- [amirales](https://github.com/amiralies): Started the plugin w/ syntax \u0026 indent functionality\n","funding_links":["https://github.com/sponsors/ryyppy","https://rescript-association.org/donate"],"categories":["Vim Script","ReScript","Vim script"],"sub_categories":["Editor Support"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frescript-lang%2Fvim-rescript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frescript-lang%2Fvim-rescript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frescript-lang%2Fvim-rescript/lists"}