Closed weaming closed 7 months ago
Did you configure LSP? It should work out of the box if buildServer.json is generated.
If LSP doesn't work properly usually it helps to clean build the project from Xcode, run xcode-build-server command again and run vim. Make sure that buildServer.json
is in your root dir and that your root dir is properly set in LSP. Run: :LspInfo
and :LspLog
.
But I use VS Code, not vim. Forget it if you do not familiar with VSCode.
It should work out of the box if LSP is properly configured and buildServer.json is generated. Probably your LSP sets incorrectly root.
Here is my small guide to VS Code, you can check it out as well: https://wojciechkulik.pl/ios/how-to-develop-ios-and-macos-apps-in-other-ides-like-neovim-or-vs-code
I generated buildServer.json by following the steps in your blog https://wojciechkulik.pl/ios/the-complete-guide-to-ios-macos-development-in-neovim, but do not know how to make it works for cocoapods (xxx.xcworkspace which works in Xcode) and vscode. By the way, I use https://marketplace.visualstudio.com/items?itemName=sswg.swift-lang extension to start sourcekit-lsp.