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
pull/1855/head
Slin Lee 3 years ago committed by GitHub
parent 5d7fa57754
commit 3c79bf5117
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -54,6 +54,7 @@
| ruby | ✓ | | ✓ | `solargraph` | | ruby | ✓ | | ✓ | `solargraph` |
| rust | ✓ | ✓ | ✓ | `rust-analyzer` | | rust | ✓ | ✓ | ✓ | `rust-analyzer` |
| scala | ✓ | | ✓ | `metals` | | scala | ✓ | | ✓ | `metals` |
| solidity | | | | `solc` |
| svelte | ✓ | | ✓ | `svelteserver` | | svelte | ✓ | | ✓ | `svelteserver` |
| tablegen | ✓ | ✓ | ✓ | | | tablegen | ✓ | ✓ | ✓ | |
| toml | ✓ | | | | | toml | ✓ | | | |

@ -988,3 +988,14 @@ indent = { tab-width = 2, unit = " " }
[[grammar]] [[grammar]]
name = "org" name = "org"
source = { git = "https://github.com/milisims/tree-sitter-org", rev = "1c3eb533a9cf6800067357b59e03ac3f91fc3a54" } source = { git = "https://github.com/milisims/tree-sitter-org", rev = "1c3eb533a9cf6800067357b59e03ac3f91fc3a54" }
[[language]]
name = "solidity"
scope = "source.sol"
injection-regex = "sol"
file-types = ["sol"]
roots = []
comment-token = "//"
indent = { tab-width = 4, unit = " " }
language-server = { command = "solc", args = ["--lsp"] }

Loading…
Cancel
Save