{"id":13472831,"url":"https://github.com/klaaspieter/coc-sourcekit","last_synced_at":"2025-10-07T02:31:47.836Z","repository":{"id":43979028,"uuid":"232819330","full_name":"klaaspieter/coc-sourcekit","owner":"klaaspieter","description":"Swift language server extension using sourcekit-lsp for coc.nvim.","archived":true,"fork":false,"pushed_at":"2023-01-09T11:39:16.000Z","size":65,"stargazers_count":73,"open_issues_count":8,"forks_count":9,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-15T11:36:41.127Z","etag":null,"topics":["coc","neovim","sourcekit","sourcekit-lsp","swift","vim"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/klaaspieter.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}},"created_at":"2020-01-09T13:47:03.000Z","updated_at":"2024-07-13T11:00:37.000Z","dependencies_parsed_at":"2023-02-08T10:17:04.949Z","dependency_job_id":null,"html_url":"https://github.com/klaaspieter/coc-sourcekit","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klaaspieter%2Fcoc-sourcekit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klaaspieter%2Fcoc-sourcekit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klaaspieter%2Fcoc-sourcekit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klaaspieter%2Fcoc-sourcekit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/klaaspieter","download_url":"https://codeload.github.com/klaaspieter/coc-sourcekit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235581533,"owners_count":19013089,"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":["coc","neovim","sourcekit","sourcekit-lsp","swift","vim"],"created_at":"2024-07-31T16:00:58.329Z","updated_at":"2025-10-07T02:31:42.513Z","avatar_url":"https://github.com/klaaspieter.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","Language Support"],"sub_categories":[],"readme":"⚠️ I no longer use coc and therefore stopped maintaining coc-sourcekit.\n\n# coc-sourcekit\n\nSourcekit language server extension for [coc].\n\n[coc]: https://github.com/neoclide/coc.nvim\n\n## Install\n\nIn vim or neovim, run command:\n\n```sh\n:CocInstall coc-sourcekit\n```\n## Features\n\nSee [sourcekit-lsp].\n\n[sourcekit-lsp]: https://github.com/apple/sourcekit-lsp\n\n\n## Configuration options\n\n|Key|Description|Default|\n|----|------------|-----|\n|`sourcekit.enable`|Enable sourcekit extension|true|\n|`sourcekit.commandPath`|Path to sourcekit-lsp binary|Output of `which sourcekit-lsp`|\n|`sourcekit.trace.server`|Trace the communication between coc and the sourcekit language server|\n|`sourcekit.sdkPath`|The path to the desired SDK|Nothing|\n|`sourcekit.sdk`|The name to the desired SDK to be fetched|Nothing|\n|`sourcekit.targetArch`| The name of the target (e.g x86_64-apple-ios13.2-simulator) to generate code |\n|`sourcekit.args`|Extra arguments to pass to the lsp|[]|\n|`sourcekit.env`|Environment variables to pass to the lsp.|{}|\n\n### Environment Variables\n\nYou can configure SourceKit's [logging](https://github.com/apple/sourcekit-lsp/blob/main/Documentation/Development.md#print-sourcekit-logs) and [toolchain path](https://github.com/apple/sourcekit-lsp/blob/main/Documentation/Development.md#selecting-the-toolchain) through `sourcekit.env`:\n\n```json\n\"sourcekit.env\": {\n\t\"SOURCEKIT_TOOLCHAIN_PATH\": \"/home/USER/swift-DEVELOPMENT-SNAPSHOT-2021-07-30-a-ubuntu20.04/\",\n\t\"SOURCEKIT_LOGGING\": \"3\" // verbose logging\n}\n```\n\n## Development\n\n1. Run `yarn build` or `yarn build:watch`\n2. Run `yarn run link:add` to link extension\n3. Open a Swift file in vim\n\nTo see that it worked use [`:CocOpenLog`].\n\n\nAlternatively a [`.env`](.env) is provided which allows for tailing the logs outside of vim:\n\n```sh\n# In the split/tab you will open vim\nsource .env\n\n# In another split/tab\ntail -f coc.log\n```\n\nOr source it [automatically](https://github.com/klaaspieter/dotfiles/blob/5c2c1a6fa1a6f9ccc9031c3dc8de2ea9a3c4fdb0/zshrc#L327-L334).\n\n[`:CocOpenLog`]: https://github.com/neoclide/coc.nvim/blob/db5ffd2ff0d766c2cfbd711898e8a3f5736e038c/doc/coc.txt#L1659\n\n## Acknowledgements\n\n- [josa42] for [coc-go] and [coc-sh]. This repo started out as a copy of [coc-go] and I used [coc-sh] as a reference implementation.\n\n[josa42]: https://github.com/josa42\n[coc-go]: https://github.com/josa42/coc-go\n[coc-sh]: https://github.com/josa42/coc-sh\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklaaspieter%2Fcoc-sourcekit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fklaaspieter%2Fcoc-sourcekit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklaaspieter%2Fcoc-sourcekit/lists"}