summaryrefslogtreecommitdiff
path: root/script/core/formatting.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/formatting.lua')
-rw-r--r--script/core/formatting.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/script/core/formatting.lua b/script/core/formatting.lua
index 6c57b8c2..49da6861 100644
--- a/script/core/formatting.lua
+++ b/script/core/formatting.lua
@@ -1,11 +1,11 @@
local codeFormat = require("code_format")
-local files = require("files")
-local log = require("log")
+local files = require("files")
+local log = require("log")
-return function(uri)
+return function(uri, options)
local text = files.getText(uri)
local ast = files.getState(uri)
- local status, formattedText = codeFormat.format(uri, text)
+ local status, formattedText = codeFormat.format(uri, text, options)
if not status then
if formattedText ~= nil then