Back to Extensions Directory
Read the complete README
coc-stylua
xiyaowongStyLua extension for coc.nvim.
Installation CommandVim prompt
:CocInstall coc-stylua
GitHub owner
xiyaowongVersion
v0.0.14npm package
coc-styluaRequirements
coc ^0.0.80
License
MIT
Repository
GitHubnpm latest published 2026-09-12Registry checked 2026-09-13Node >=18.0.0Registry summary
Published Package Summary
coc-stylua
StyLua for coc.nvim.
Install
:CocInstall coc-stylua
Usage
- Just run coc's formatting commands.
- Add
"lua"tococ.preferences.formatOnSaveFiletypesto format on save.
License
MIT
- StyLua extension for coc.nvim.
Activation Events
- onLanguage:lua
- onLanguage:luau
Developer Resources
Want to build, test, or contribute to coc.nvim extensions? Explore our official SDK and testing toolkits.
Open Developer GuideVersion History
This published npm package does not include a history.md or changelog.md file. Browse its npm versions or repository releases for available release information.
Contributed Commands
All contributes.commands entries from the published package manifest for coc-stylua@0.0.14.
| Command (:CocCommand) | Description |
|---|---|
| stylua.reinstall | Reinstall StyLua |
Configuration Schema
All contributes.configuration entries from the published package manifest, including each raw property schema for coc-settings.json.
stylua.configPathstring | null
Specify path to stylua.toml configuration file. Passed to the language server as --config-path.
Default: null
Raw JSON Schema
{
"type": [
"string",
"null"
],
"default": null,
"description": "Specify path to stylua.toml configuration file. Passed to the language server as --config-path."
}stylua.styluaPathstring | null
Specifies the path of the StyLua executable, or a command name available on PATH. If not specified, will automatically download one from the GitHub releases.
Default: null
Raw JSON Schema
{
"type": [
"string",
"null"
],
"default": null,
"description": "Specifies the path of the StyLua executable, or a command name available on PATH. If not specified, will automatically download one from the GitHub releases."
}stylua.checkUpdateboolean
Whether to check out the latest stylua version.
Default: true
Raw JSON Schema
{
"type": "boolean",
"default": true,
"description": "Whether to check out the latest stylua version."
}stylua.formatOptionsarray
Extra arguments passed to `stylua --lsp`, e.g. `["--indent-type", "Spaces", "--indent-width", "4"]`. A single space separated string is accepted too.
Use the FORMATTING OPTIONS listed by `stylua -h`: `--call-parentheses`, `--collapse-simple-statement`, `--column-width`, `--indent-type`, `--indent-width`, `--line-endings`, `--preserve-block-newline-gaps`, `--quote-style`, `--sort-requires`, `--space-after-function-names`, `--syntax`. They take precedence over `stylua.toml` and `stylua.configPath`.
Default: []
Raw JSON Schema
{
"type": "array",
"items": {
"type": "string"
},
"default": [],
"markdownDescription": "Extra arguments passed to `stylua --lsp`, e.g. `[\"--indent-type\", \"Spaces\", \"--indent-width\", \"4\"]`. A single space separated string is accepted too.\n\nUse the FORMATTING OPTIONS listed by `stylua -h`: `--call-parentheses`, `--collapse-simple-statement`, `--column-width`, `--indent-type`, `--indent-width`, `--line-endings`, `--preserve-block-newline-gaps`, `--quote-style`, `--sort-requires`, `--space-after-function-names`, `--syntax`. They take precedence over `stylua.toml` and `stylua.configPath`."
}stylua.releaseVersionstring
The release version to install, e.g. `latest`, `v2.5.2` or `v2.5`.
Default: "latest"
Raw JSON Schema
{
"type": "string",
"default": "latest",
"markdownDescription": "The release version to install, e.g. `latest`, `v2.5.2` or `v2.5`."
}