emacs-lsp / lsp-sourcekit

lsp-mode :heart: Apple's sourcekit
https://emacs-lsp.github.io/lsp-sourcekit
GNU General Public License v3.0
103 stars 13 forks source link

Example of working config? #22

Open konrad1977 opened 2 years ago

konrad1977 commented 2 years ago

I managed to get some autocomplete working but not for properties of a class/struct. It also stops working very often.

Does anyone have any pointers how to get it to work? Any other better options?

tornikegomareli commented 2 years ago

Same problem here, If I will add custom class autocomplete is not working for them. Also for UIKIt classes, there is no autocompletion if I want to override viewDidLoad, or just need to access view from self.

konrad1977 commented 2 years ago

@tornikegomareli Unfortunately lsp-sourcekit stops working all the time. I switched to Eglot while they try to fix it. Apples SourceKit-LSP seemes very limited or my config does something strange, I only get first level autocomplete. So if I am in a struct/class/enum it will autocomplete properties and functions of that specific instance, but let say you are in your AppDelegate and that one has a UIViewController instance it wont autocomplete properties for that UIViewController, which is a huge bummer.

According to Apple LSP alot of features should be supported, but never got them to work in emacs.