0.0.3 • Published 3 years ago

coc-sourcekit v0.0.3

Weekly downloads
99
License
MIT
Repository
github
Last release
3 years ago

coc-sourcekit

Sourcekit language server extension for coc.

Install

In vim or neovim, run command:

:CocInstall coc-sourcekit

Features

See sourcekit-lsp.

Configuration options

KeyDescriptionDefault
sourcekit.enableEnable sourcekit extensiontrue
sourcekit.commandPathPath to sourcekit-lsp binaryOutput of xcrun --find sourcekit-lsp
sourcekit.trace.serverTrace the communication between coc and the sourcekit language server
sourcekit.sdkPathThe path to the desired SDKNothing
sourcekit.sdkThe name to the desired SDK to be fetchedNothing
sourcekit.targetArchThe name of the target (e.g x86_64-apple-ios13.2-simulator) to generate code
sourcekit.argsExtra arguments to pass to the lsp[]

Development

  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.

Acknowledgements

0.0.3

3 years ago

0.0.2

4 years ago

0.0.1

4 years ago