Skip to content

xiyaowong/coc-stylua

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

coc-stylua

StyLua extension for coc.nvim. Forked from stylua-vscode

Install

:CocInstall coc-stylua

Features

  • Format current buffer
  • Format selection

You 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