GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • dprint
  • Docs
  • Plugins
  • Playground
  • Sponsor
  • GitHub ↗
  • // plugins
  • Overview
  • Configuration

This view

  • Original page
  • New address

GeezerVison is showing dprint.dev — StyLua Plugin - dprint - Code Formatter

Wrapper plugin that formats Lua and Luau code via StyLua. It runs StyLua's own code compiled to Wasm, so it formats exactly like the StyLua CLI.

Formats .lua and .luau files. Lua 5.1 through 5.4, Luau, LuaJIT, and CfxLua are supported.

Install and Setup

In your project's directory with a dprint.json file, run:

dprint add stylua

This will update your config file to have an entry for the plugin. Then optionally specify a "stylua" property to add configuration:

{
  "stylua": {
    // StyLua's config goes here
  },
  "plugins": [
    "npm:@dprint/[email protected]"
  ]
}

Install

dprint add stylua
Version
0.2.0
Downloads (30 days)
1,135
Config key
stylua
Files
  • .lua
  • .luau
Repository
dprint/dprint-plugin-stylua
npm
@dprint/stylua
Keywords
  • lua
  • luau
  • luajit
  • stylua

All plugins

Official Plugins

TypeScript / JavaScript.ts · .tsx · .js Wasm JSON.json Wasm Markdown.md Wasm TOML.toml Wasm DockerfileDockerfile Wasm SQL.sql Wasm Jupyter.ipynb Wasm

Community Plugins

MalvaCSS · SCSS · Sass · Less Wasm markup_fmtHTML · Vue · Svelte · Astro Wasm Pretty GraphQL.graphql Wasm Pretty YAML.yaml Wasm Lax CSSCSS · SCSS · Less Wasm Lax MarkupHTML · XML · SVG · Vue · Svelte · Astro Wasm Lax SQLSQL Wasm cmakefmtCMake Wasm cmakefmt (azais-corentin)CMake Wasm

Wrapper Plugins

Prettiermulti-language Process BiomeJS · TS · JSON Wasm OxcJS · TS · JSON · CSS · GraphQL · YAML · TOML · Markdown Wasm BunJS · TS · JSON · CSS · GraphQL · YAML · TOML · Markdown · HTML · Vue Wasm RuffPython Wasm MagoPHP Wasm RoslynC# · VB Wasm CSharpierC# · XML Wasm clang-formatC · C++ · Objective-C Wasm CedarCedar Wasm TypstyleTypst Wasm Nix.nix Wasm Alejandra.nix Wasm KDL.kdl Wasm Shucksh · Bash · Zsh Wasm shfmtsh · Bash · Zsh Wasm StyLuaLua · Luau Wasm ZigZig · ZON Wasm TerraformTerraform · OpenTofu · HCL Wasm buildifierBazel · Starlark Wasm WebAssembly Text.wat Wasm GofumptGo Wasm Swift.swift Process PanacheQuarto · Pandoc · R Markdown · Markdown Wasm BadnessLaTeX · BibTeX Wasm ArityR Wasm FatouJulia Wasm bibtex-tidyBibTeX Wasm

Everything Else

ExecWrap any other CLI formatter — rustfmt, yapf, java … Process
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.