diff options
Diffstat (limited to 'lsp')
| -rw-r--r-- | lsp/stylua.lua | 12 |
1 files changed, 12 insertions, 0 deletions
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' }, +} |
