Hello!
Is there a recommended way to use roc in vim / neovim?
A message was moved here from #beginners > streaming file read by timotree.
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 :)
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
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