diff --git a/docs/src/language_servers.md b/docs/src/language_servers.md index 230be130e..b85b1d59e 100644 --- a/docs/src/language_servers.md +++ b/docs/src/language_servers.md @@ -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).