Add LSP support for Solidity (#1848)
* Add LSP support for Solidity
This requires a recent version of Solidity 0.8.11+
* Add Solidity to docs
* Update the docs
commit3c79bf51170caf09642da3cc23ba389ed57a79ac
authorSlin Lee <slin@slinlee.com>
dateMon 21 Mar 2022, 19:22 (5 years ago)
parent5d7fa57
book/src/generated/lang-support.md+1
@@ -54,6 +54,7 @@
5454| ruby | ✓ | | ✓ | `solargraph` |
5555| rust | ✓ | ✓ | ✓ | `rust-analyzer` |
5656| scala | ✓ | | ✓ | `metals` |
57+| solidity | | | | `solc` |
5758| svelte | ✓ | | ✓ | `svelteserver` |
5859| tablegen | ✓ | ✓ | ✓ | |
5960| toml | ✓ | | | |
languages.toml+11
@@ -988,3 +988,14 @@ indent = { tab-width = 2, unit = " " }
988988[[grammar]]
989989name = "org"
990990source = { git = "https://github.com/milisims/tree-sitter-org", rev = "1c3eb533a9cf6800067357b59e03ac3f91fc3a54" }
991+
992+[[language]]
993+name = "solidity"
994+scope = "source.sol"
995+injection-regex = "sol"
996+file-types = ["sol"]
997+roots = []
998+comment-token = "//"
999+indent = { tab-width = 4, unit = " " }
1000+language-server = { command = "solc", args = ["--lsp"] }
1001+