SwiftPackageManager.vim makes using Swift with Vim awesome.
Status: In progress see TODO
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
It listens for build updates and shows results.
# Pipe swift output to .build/last_build.log
swift build | tee .build/last_build.log
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.
SwiftPackageManager.vim improves and unifies many features into an easy to use plugin.
Checkout the roadmap for more!
Contributions in the form of issues, documentation, PRs, bugs, or any feedback are welcome.