Demonstrates how to integrate the Swift LSP Server with NeoVim
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
MySwiftPackage
cache/dein/repos/github.com/Shougo
sourcekit-lsp @ bf4c8bc
.gitmodules
README.md
init.sh
tryit.sh
vimrc

README.md

This repo demostrates how to use Neovim with the new Swift LSP server. The full write up can be found here: https://www.sfsoftwareist.com/2018/12/05/swift-lsp-and-vim/

To use the repository, there are 3 steps:

  1. Clone my repo, cd into it and ./init.sh. This will fetch the sourcekit-lsp submodule, build it and build the demo Swift package found at MySwiftPackage. It will also update neovim with the Dein, Deoplete and LCN plugins.
  2. Download and install the Swift toolchain recommended on the sourcekit-lsp website(12-4-2018 at the time of this writing). Make sure SOURCEKIT_TOOLCHAIN_PATH in tryit.sh points to the newly installed xctoochain file.
  3. Run tryit.sh which will set some environment variables and launch Neovim into the main.swift file. At this point you are ready to start experimenting!
  4. In Neovim, run :UpdateRemotePlugins