feat: add stylua

This commit is contained in:
isabel 2024-03-29 10:30:20 +00:00
parent 62d92c6d3c
commit bc18d608a0
No known key found for this signature in database
GPG key ID: 5A87C993E20D89A1
2 changed files with 13 additions and 1 deletions

View file

@ -1,5 +1,8 @@
{
"Lua.runtime.version": "Lua 5.1",
"$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json",
"workspace.checkThirdParty": false
"workspace.checkThirdParty": false,
"diagnostics.globals": [
"vim"
]
}

9
stylua.toml Normal file
View file

@ -0,0 +1,9 @@
indent_type = "Spaces"
indent_width = 2
column_width = 120
quote_style = "AutoPreferDouble"
call_parentheses = "Always"
line_endings = "Unix"
[sort_requires]
enabled = true