Skip to content

nomad-lw/zed-extensions_solidity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zed Solidity

A Solidity extension for Zed.

This extension adds support for the Solidity programming language, providing syntax highlighting and language server functionality for smart contract development.

Features

  • Syntax highlighting for solidity files
  • Language server support via vscode-solidity-server
  • Auto-installation and updates of the language server
  • Independent from framework dependencies
  • Code completion and diagnostics (broken)

Development

To develop this extension, see the Developing Extensions section of the Zed docs.

Initialization Options

You can configure the language server behavior through initialization options in your Zed settings:

Reminder! This is mostly untested WIP, barely any settings have been tested.

{
  "lsp": {
    "solidity": {
      "initialization_options": {
        "solidity": {
          // Path to local solc binary (optional)
          "compilerPath": "/usr/local/bin/solc",

          // Compiler optimization settings
          "optimizer": {
            "enabled": true,
            "runs": 200
          },

          // Enable/disable certain features
          "enabledFeatures": {
            "completion": true,
            "hover": true,
            "diagnostics": true,
            "codeActions": true
          }
        }
      }
    }
  }
}

Requirements

  • Node.js (for the language server)
  • Zed editor

Status

This is an initial developmental version with basic functionality. Future updates will include:

  • Better integration with development frameworks (hardhat/forge)
  • Import resolution
  • Enhanced type checking

Contributing

Feel free to open issues and submit pull requests. All contributions are welcome!

Credits

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE.md file for details.

Copyright © 2025-present Sambot ([email protected])

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published