True as of 2024-05-10, using Ubuntu on WSL
When you download the Roc binary, it comes bundled with the roc_language_server.
If you want to use this language server with Neovim,
there's a bit of configuration that's required.
- Download and install Roc on your system following these instructions: https://www.roc-lang.org/install
- Make sure that the
roc_language_serverbinary is available on your PATH. - Install the
neovim-lspconfigplugin following their instructions. I use theLazyplugin manager to do this. Make sure that the version you're using is up-to-date, as the Roc config was added recently. - Add this line to your
init.lua:require("lspconfig").roc_ls.setup({})
- Associate the
.rocextension with therocfiletype by adding this to yourinit.lua:vim.filetype.add({ extension = { roc = "roc" } })
- When you open a
.rocfile, it should now automatically start the language server. Additionally, if you havenvim-treesitterinstalled, it should also automatically download the Roc lang syntax the first time you open a.rocfile, after associating the filetype.