Stream: beginners

Topic: neovim lsp


view this post on Zulip Riley Rashka (Feb 02 2025 at 21:10):

Brand new roc user here!

Does roc have a neovim lsp?

view this post on Zulip Luke Boswell (Feb 02 2025 at 22:04):

I think this may help https://github.com/faldor20/tree-sitter-roc?tab=readme-ov-file#neovim

view this post on Zulip Luke Boswell (Feb 02 2025 at 22:05):

I'm not sure though because I don't use neovim.

view this post on Zulip Luke Boswell (Feb 02 2025 at 22:05):

We have an LSP which I thought was used for all editors

view this post on Zulip Anthony Bullard (Feb 02 2025 at 22:25):

Yes you can use the LSP easily with nvim-lspconfig

view this post on Zulip Luke Boswell (Feb 02 2025 at 22:27):

The LSP is distributed with the roc releases also.

view this post on Zulip Anthony Bullard (Feb 02 2025 at 22:31):

Yep the executable path for the language server is found in the parent directory of the Roc executable

view this post on Zulip Anthony Bullard (Feb 02 2025 at 22:32):

So if you have roc in your PATH, the roc_language_server should be too

view this post on Zulip Anthony Bullard (Feb 02 2025 at 22:32):

Just create a config that uses that as the cmd

view this post on Zulip Anthony Bullard (Feb 02 2025 at 22:32):

And the capabilities can be the default


Last updated: Jul 26 2025 at 12:14 UTC