Giter Club home page Giter Club logo

nix-zed's Introduction

nix-zed❄️

This is an extension for the Zed editor, providing support for the Nix language.

How to install

nix-zed can be installed through Zed's extension manager. To do so, open the command palette (Ctrl+Shift+P) in Zed and type zed: extensions. From there, you can search for the Nix language extension and install it.

Features

  • Syntax highlighting
  • Code completion (brackets, etc.)
  • Language server integration (nixd)
  • Language server configurability (choosing another Nix LSP, such as nil)
  • Inlay hints (such as package versions)
  • Intelligent hinting when "nixd" is unavailable
  • JSON highlighting for flake.lock files

Contributing

Contributions are welcome! If you have any ideas or suggestions, feel free to open an issue or a pull request.

Development

To develop on this extension, you can follow the upstream guide for authoring extensions.

On NixOS, if you want to use developer extensions in Zed, you'll need to patch the interpreter for the WASM toolchain installed by Zed:

patchelf --set-interpreter /run/current-system/sw/bin/ld.so $HOME/.local/share/zed/extensions/build/wasi-sdk/bin/wasm-ld
patchelf --set-interpreter /run/current-system/sw/bin/ld.so $HOME/.local/share/zed/extensions/build/wasi-sdk/bin/clang

Related projects

There is a predecessor to this project, zed-nix. Unfortunately, it seems to not be actively maintained anymore.

nix-zed's People

Contributors

msanft avatar

Stargazers

Manuel Brea Carreras avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.