nikvdp / nvim-lsp-config

97 stars 22 forks source link

Trying to get gopls working #5

Closed awilliamson-puppet closed 3 years ago

awilliamson-puppet commented 3 years ago

Just want to say first thanks for this awesome repo; currently making the switch from VSCode. Trying to get gopls working but the server doesn't seem to attach on starting up. Did you have to do anything special to get it working?

nikvdp commented 3 years ago

hey @awilliamson-puppet, glad to hear from you! I didn't have to do anything special aside from the usual :LspInstall go. If you do :LspInfo you get a screen with some extra info including the path to a log file (should be on the second line of the window), that might give you some extra insight into why it's not attaching on your system

awilliamson-puppet commented 3 years ago

Hey thanks for the reply - I eventually got it working with the help of the log. Thank you very much!!

nikvdp commented 3 years ago

Great, glad you got it sorted out! What was the issue?

awilliamson-puppet commented 3 years ago

I had an empty go.mod file in my sample directory to satisfy the root_dir pattern requirements, but since it was empty gopls was throwing a bunch of errors. I switched to a .git file to satisfy the requirements and that seems to have worked for basic testing of the autocomplete settings. Thanks again for all this work - it is excellent!

On Tue, Sep 7, 2021 at 10:17 AM Nik @.***> wrote:

Great, glad you got it sorted out! What was the issue?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nikvdp/nvim-lsp-config/issues/5#issuecomment-914345277, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVH2OYOWDVXIPDNJZ3SSWDLUAYNHZANCNFSM5DJIJTGQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

nikvdp commented 3 years ago

Awesome, glad you’re enjoying it :)