Skip to content

Formatting doesn't work #56

Description

@zerwiport

After calling reformat nothing happens. Does it require additional configuration or maybe it's not supported at all?

./.emmyrc.json

{
	"$schema": "https://raw.githubusercontent.com/EmmyLuaLs/emmylua-analyzer-rust/refs/heads/main/crates/emmylua_code_analysis/resources/schema.json",
	"runtime": {
		"version": "Lua5.2",
		"requireLikeFunction": [
			"import"
		]
	},
	"completion": {
		"callSnippet": true,
		"autoRequireFunction": "import"
	},
	"workspace": {
		"enableReindex": true,
		"moduleMap": [
			{
				"pattern": "^src\\.(.*)$",
				"replace": "$1"
			}
		],
		"library": [
			"./factorio-api/library"
		],
		"workspaceRoots": [
			"./mod/src"
		],
		"ignoreDir": [
			".git",
			".idea",
			".target",
			"_scripts",
			"factorio-api"
		]
	},
	"diagnostics": {
		"disable": [
			"unused"
		]
	}
}

./.luafmt.toml

[syntax]
level = "Lua52"
[layout]
max_line_width = 160
table_expand = "Auto"
call_args_expand = "Auto"
func_params_expand = "Auto"

[output]
quote_style = "Preserve"
trailing_table_separator = "Multiline"
single_arg_call_parens = "Preserve"

[comments]
align_in_statements = false
align_in_table_fields = true
align_in_call_args = true
align_in_params = true

[align]
continuous_assign_statement = false
table_field = true

EmmyLua2 0.24.0.115-IDEA262
LSP4IJ 0.20.1
IntelliJ IDEA 2026.2.1
Build #IU-262.9437.185, built on August 9, 2026

(Thank you for the great plugin)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions