Swift Package Index


SwiftPackageManager.vim makes using Swift with Vim awesome.


  • The last commit to master was 2 years ago.

Swift Version Compatibility

  • master
    5.3
    5.2
    5.1
    5.0
    4.2
Full build results

Platform Compatibility

  • master
    iOS
    macOS(Intel)
    macOS(ARM)
    Linux
    tvOS
    watchOS
Full build results

SwiftPackageManager.vim

SwiftPackageManager.vim makes using Swift with Vim awesome.

BuildAwareness

Status: In progress see TODO

Installing

First, install with your favorite plugin manager.

Build:

cd .vim/bundle
git clone https://github.com/swift-vim/SwiftPackageManager.vim.git

cd SwiftPackageManager.vim
make

Then, add spm-vim to your path:

ln -s $PWD/.build/debug/spm-vim /usr/local/bin/spm-vim

Features

View Swift Build Results in Vim

It listens for build updates and shows results.

# Pipe swift output to .build/last_build.log
swift build | tee .build/last_build.log

Setup Code Completion and Diagnostics

It generates compile_commands.json.

# Pipe *parseable* swift output to spm-vim
swift build -parseable-output  | spm-vim compile_commands

Required by code completion and diagnostics engine, iCompleteMe.

Roadmap

SwiftPackageManager.vim improves and unifies many features into an easy to use plugin.

Checkout the roadmap for more!

Contributing

Contributions in the form of issues, documentation, PRs, bugs, or any feedback are welcome.