Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StyLua for Zed

A clean Zed extension for formatting Lua and Luau with StyLua.

Behaviour

  • Uses stylua from the active workspace PATH when it is installed.
  • Otherwise downloads the official StyLua release for the active platform.
  • Starts StyLua's built-in language-server mode with stylua --lsp.
  • Contains no machine-specific paths, patches, wrapper scripts, or project-specific logic.

The PATH lookup happens in the environment where the project is open, so it works with local projects, Linux, macOS, Windows, and WSL worktrees.

Development installation

  1. Extract the archive.
  2. Remove any older StyLua dev extension from Zed.
  3. Run Extensions: Install Dev Extension.
  4. Select this folder.
  5. Reopen a Lua or Luau file.

Zed settings

{
  "languages": {
    "Lua": {
      "language_servers": ["lua-language-server", "selene", "stylua", "..."],
      "formatter": { "language_server": { "name": "stylua" } },
      "format_on_save": "on"
    },
    "Luau": {
      "language_servers": ["luau-lsp", "selene", "stylua", "..."],
      "formatter": { "language_server": { "name": "stylua" } },
      "format_on_save": "on"
    }
  }
}

No lsp.stylua settings are required.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages