Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xiyaowong/coc-stylua
StyLua extension for coc.nvim.
https://github.com/xiyaowong/coc-stylua
Last synced: about 1 month ago
JSON representation
StyLua extension for coc.nvim.
- Host: GitHub
- URL: https://github.com/xiyaowong/coc-stylua
- Owner: xiyaowong
- License: mit
- Created: 2021-07-10T14:47:29.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-07-23T09:56:26.000Z (over 2 years ago)
- Last Synced: 2024-08-09T10:31:19.309Z (3 months ago)
- Language: TypeScript
- Size: 87.9 KB
- Stars: 9
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# coc-stylua
[StyLua](https://github.com/JohnnyMorganz/StyLua) extension for coc.nvim.
Forked from [stylua-vscode](https://github.com/JohnnyMorganz/StyLua/tree/master/stylua-vscode)## Install
`:CocInstall coc-stylua`
## Features
- Format current buffer
- Format selectionYou can add "lua" to `coc.preferences.formatOnSaveFiletypes` to format your code automatically on save.
## Extension Settings
You can specify the path of the StyLua binary using the `stylua.styluaPath` setting.
By default, if this is null, the extension will download the binary and store it in its local storage.You can use `stylua.configPath` to specify path to stylua.toml configuration file.
`stylua.checkUpdate` boolean value indicates whether to check out the latest stylua version.
## Commands
- `stylua.reinstall` Reinstall StyLua
## License
MIT
---
> This extension is built with [create-coc-extension](https://github.com/fannheyward/create-coc-extension)