From 345560dbc7a6acd91607d182093d512f7ff23096 Mon Sep 17 00:00:00 2001 From: Bartłomiej Maryńczak Date: Sun, 14 Sep 2025 23:44:05 +0200 Subject: feat: StyLua Lua formatter #4073 --- lsp/stylua.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 lsp/stylua.lua (limited to 'lsp/stylua.lua') diff --git a/lsp/stylua.lua b/lsp/stylua.lua new file mode 100644 index 00000000..79c12af5 --- /dev/null +++ b/lsp/stylua.lua @@ -0,0 +1,12 @@ +---@brief +--- +--- https://github.com/JohnnyMorganz/StyLua +--- +--- A deterministic code formatter for Lua 5.1, 5.2, 5.3, 5.4, LuaJIT, Luau and CfxLua/FiveM Lua + +---@type vim.lsp.Config +return { + cmd = { 'stylua', '--lsp' }, + filetypes = { 'lua' }, + root_markers = { '.stylua.toml', 'stylua.toml' }, +} -- cgit v1.2.3-70-g09d2