Stream: beginners

Topic: vim/neovim


view this post on Zulip Dustin (May 08 2024 at 00:56):

Hello!
Is there a recommended way to use roc in vim / neovim?

view this post on Zulip Notification Bot (May 08 2024 at 04:26):

A message was moved here from #beginners > streaming file read by timotree.

view this post on Zulip timotree (May 08 2024 at 04:34):

Hi there! I don't know the answer to your question but I've moved this message to a new topic "vim/neovim" since it was posted under "streaming file read". Zulip's topic feature can take some getting used to :)

view this post on Zulip Alf Richter (May 08 2024 at 13:00):

Take a look at the editor section (see below), there under point 3 "..others.." link, you jumpt to the tree sitter roc page, there is a vim section:
https://github.com/roc-lang/roc/tree/main/getting_started#installation

Here is an other link to newer section in zulip:
https://roc.zulipchat.com/#narrow/stream/316715-contributing/topic/tree-sitter.20grammar/near/434737352

view this post on Zulip Joscha (May 14 2024 at 21:59):

Hi @Dustin

I added a very basic configuration for roc to nvim-lspconfig. Assuming you’re using nvim-lspconfig already and it’s up to date you just have to add require'lspconfig'.roc_ls.setup{} to your config and it should work just fine. The language server comes with the Roc installation. So you probably have it installed already.

nvim-lspconfig: https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#roc_ls

As mentioned before there’s a treesitter grammar available as well. You can install it with :TSInstall roc

Hope that helps. Have fun :blush:


Last updated: Jul 05 2025 at 12:14 UTC