Coc Sourcekit

Swift language server extension using sourcekit-lsp for coc.nvim.
Alternatives To Coc Sourcekit
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
10 hours ago1,637otherVim Script
Vim-fork focused on extensibility and usability
Fzf51,212852 days ago62April 17, 2021309mitGo
:cherry_blossom: A command-line fuzzy finder
Vim Plug30,289
2 months ago120mitVim Script
:hibiscus: Minimalist Vim Plugin Manager
Coc.nvim22,511822637 days ago97September 19, 202242otherTypeScript
Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
16 hours ago1July 02, 202226gpl-3.0Lua
A community-driven modular vim/neovim distribution - The ultimate vimrc
a day ago2August 19, 20211gpl-3.0Lua
An attempt to make neovim cli functional like an IDE while being very beautiful, blazing fast startuptime
Vim Galore15,154
a month ago8cc-by-sa-4.0Vim script
:mortar_board: All things Vim!
10 hours ago78gpl-3.0Lua
🌙 LunarVim is an IDE layer for Neovim. Completely free and community driven.
11 hours ago1,420mitTypeScript
:star: Vim for Visual Studio Code
Oni11,47713 years ago6April 02, 2017518mitTypeScript
Oni: Modern Modal Editing - powered by Neovim
Alternatives To Coc Sourcekit
Select To Compare

Alternative Project Comparisons

⚠️ I no longer use coc and therefore stopped maintaining coc-sourcekit.


Sourcekit language server extension for coc.


In vim or neovim, run command:

:CocInstall coc-sourcekit


See sourcekit-lsp.

Configuration options

Key Description Default
sourcekit.enable Enable sourcekit extension true
sourcekit.commandPath Path to sourcekit-lsp binary Output of which sourcekit-lsp
sourcekit.trace.server Trace the communication between coc and the sourcekit language server
sourcekit.sdkPath The path to the desired SDK Nothing
sourcekit.sdk The name to the desired SDK to be fetched Nothing
sourcekit.targetArch The name of the target (e.g x86_64-apple-ios13.2-simulator) to generate code
sourcekit.args Extra arguments to pass to the lsp []
sourcekit.env Environment variables to pass to the lsp. {}

Environment Variables

You can configure SourceKit's logging and toolchain path through sourcekit.env:

"sourcekit.env": {
	"SOURCEKIT_TOOLCHAIN_PATH": "/home/USER/swift-DEVELOPMENT-SNAPSHOT-2021-07-30-a-ubuntu20.04/",
	"SOURCEKIT_LOGGING": "3" // verbose logging


  1. Run yarn build or yarn build:watch
  2. Run yarn run link:add to link extension
  3. Open a Swift file in vim

To see that it worked use :CocOpenLog.

Alternatively a .env is provided which allows for tailing the logs outside of vim:

# In the split/tab you will open vim
source .env

# In another split/tab
tail -f coc.log

Or source it automatically.


Popular Vim Projects
Popular Neovim Projects
Popular Text Editors Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.