wojciech-kulik / xcodebuild.nvim

Neovim plugin to Build, Debug, and Test applications created for Apple devices (iOS, macOS, watchOS, etc.)
MIT License
696 stars 18 forks source link

Incorrect Closure Expansion #137

Closed BlackCatHehe closed 7 months ago

BlackCatHehe commented 7 months ago

First of all, thank you for providing such an excellent plugin for nvim; I've really enjoyed using it. I encountered a particularly annoying issue during use: when I use closures, nvim does not provide the correct suggestions like xcode does, as shown below.

Have you encountered this problem during your use, and how can I solve it?

nvim: iShot_2024-04-20_14 20 09

xcode: iShot_2024-04-20_14 21 10

wojciech-kulik commented 7 months ago

Hi, completions are managed by sourcekit-lsp. I guess this feature is not available there and in Xcode it is provided by Xcode itself.

You could creata a feature request in their repo.

I also built some small function to transform this case, see https://github.com/wojciech-kulik/xcodebuild.nvim/discussions/33

BlackCatHehe commented 7 months ago

Great, I will try it. Thanks.