Skip to content

Commit 345560d

Browse files
authored
feat: StyLua Lua formatter #4073
1 parent d89f489 commit 345560d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

lsp/stylua.lua

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---@brief
2+
---
3+
--- https://github.com/JohnnyMorganz/StyLua
4+
---
5+
--- A deterministic code formatter for Lua 5.1, 5.2, 5.3, 5.4, LuaJIT, Luau and CfxLua/FiveM Lua
6+
7+
---@type vim.lsp.Config
8+
return {
9+
cmd = { 'stylua', '--lsp' },
10+
filetypes = { 'lua' },
11+
root_markers = { '.stylua.toml', 'stylua.toml' },
12+
}

0 commit comments

Comments
 (0)