mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
Merge branch 'main' into builtin-task
This commit is contained in:
commit
f61b303a59
82 changed files with 2661 additions and 5699 deletions
|
@ -42,7 +42,7 @@ The roc_language_server binary is included with the [nightly releases](https://g
|
|||
|
||||
Follow the [building from source](https://github.com/roc-lang/roc/blob/main/BUILDING_FROM_SOURCE.md) instructions for roc. Then run:
|
||||
|
||||
```
|
||||
```bash
|
||||
# do `nix develop` first if you're using nix!
|
||||
cargo build --bin roc_language_server --release
|
||||
```
|
||||
|
@ -61,7 +61,7 @@ Please follow your editor's language server implementation's documentation to se
|
|||
|
||||
Add the following to your coc JSON configuration file:
|
||||
|
||||
```
|
||||
```json
|
||||
{
|
||||
"languageserver": {
|
||||
"roc": {
|
||||
|
@ -74,6 +74,18 @@ Add the following to your coc JSON configuration file:
|
|||
|
||||
If you're using coc.nvim and want to use the configuration above, be sure to also instruct your vim that `*.roc` files have roc filetype.
|
||||
|
||||
#### [nvim-lspconfig](https://github.com/neovim/nvim-lspconfig)
|
||||
|
||||
Add the following to your lspconfig setup:
|
||||
|
||||
```lua
|
||||
local lspconfig = require('lspconfig')
|
||||
lspconfig.roc_ls.setup()
|
||||
```
|
||||
|
||||
Make sure that the roc binary is on your `PATH`.
|
||||
Further instructions on how to setup nvim-lspconfig can be found in their [docs](https://github.com/neovim/nvim-lspconfig?tab=readme-ov-file#quickstart).
|
||||
|
||||
## Debug
|
||||
|
||||
If you want to debug the server, use [debug_server.sh](./debug_server.sh)
|
||||
|
|
|
@ -729,7 +729,6 @@ impl IterTokens for Loc<Expr<'_>> {
|
|||
Expr::MalformedIdent(_, _)
|
||||
| Expr::MalformedClosure
|
||||
| Expr::PrecedenceConflict(_)
|
||||
| Expr::EmptyDefsFinal
|
||||
| Expr::MalformedSuffixed(_) => {
|
||||
bumpvec![in arena;]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue