Skip to content

Commit

Permalink
Add LSP support for Solidity (helix-editor#1848)
Browse files Browse the repository at this point in the history
* Add LSP support for Solidity

This requires a recent version of Solidity 0.8.11+

* Add Solidity to docs

* Update the docs
  • Loading branch information
slinlee authored Mar 22, 2022
1 parent 5d7fa57 commit 3c79bf5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions book/src/generated/lang-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
| ruby || || `solargraph` |
| rust |||| `rust-analyzer` |
| scala || || `metals` |
| solidity | | | | `solc` |
| svelte || || `svelteserver` |
| tablegen |||| |
| toml || | | |
Expand Down
11 changes: 11 additions & 0 deletions languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -988,3 +988,14 @@ indent = { tab-width = 2, unit = " " }
[[grammar]]
name = "org"
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"] }

0 comments on commit 3c79bf5

Please sign in to comment.