Swift Development using NeoVim

I'm using NeoVim + Swift for ios app develop in my daily life.
I use COC.nvim for completion, and using

to generate the index files for the coc-sourcekit plugin.It works fine, I just updated to XCode 15 with macos 14.5

Code auto complete and Jump to defintion works fine.

SwiftUI & UIkit alow supported.

2 Likes

In case you missed this, Swift now has an LSP you can add to NeoVIM -> GitHub - swiftlang/sourcekit-lsp: Language Server Protocol implementation for Swift and C-based languages

Hey all,

I am a happy NeoVim user with a frankensetup from xcodebuild-nvim and Evans dotfiles. Works great for xcode projects with many spm local dependencies!
But I kinda want to work on SPM packages too, without Xcodebuild and I cant find any plugin or tool, that would scan Package.swift and let me build/test a specific target from that package.
Did I miss that somewhere? Should I use the command line for that separately?

Thanks!

1 Like

As a quick followup: I wrote a neotest adapter for swift-testing, check it out on GitHub. Supports discovering, running and debugging tests written for Apples Swift Testing framework.

2 Likes