Skip to content

Commit

Permalink
Added solidity language server setup guide (#2383)
Browse files Browse the repository at this point in the history
* docs: added solidity language server setup guide

* Update docs/src/language_servers.md

Co-authored-by: Rafał Chłodnicki <[email protected]>

* use '## Solidity' instead of '### Solidity'

* Add install Syntax instructions, and be consistent with other instructions

* be more explicit

---------

Co-authored-by: Предраг Николић <[email protected]>
Co-authored-by: Rafał Chłodnicki <[email protected]>
  • Loading branch information
3 people authored Apr 15, 2024
1 parent 2a2ec8d commit 779ddd7
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/src/language_servers.md
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,24 @@ Follow installation instructions on [LSP-metals](https://github.com/scalameta/me
}
```

## Solidity

1. Install the [Ethereum](https://packagecontrol.io/packages/Ethereum) package from Package Control for syntax highlighting.
2. Install the [github:NomicFoundation/hardhat-vscode](https://github.com/NomicFoundation/hardhat-vscode/tree/development/server) language server.
3. Open `Preferences > Package Settings > LSP > Settings` and add the `"solidity"` client configuration to the `"clients"`:

```jsonc
{
"clients": {
"solidity": {
"enabled": true,
"command": ["nomicfoundation-solidity-language-server", "--stdio"],
"selector": "source.solidity"
}
}
}
```

## Stylelint

Follow installation instructions on [LSP-stylelint](https://github.com/sublimelsp/LSP-stylelint).
Expand Down

0 comments on commit 779ddd7

Please sign in to comment.