summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--script/core/formatting.lua4
-rw-r--r--script/core/rangeformatting.lua4
-rw-r--r--script/provider/provider.lua4
3 files changed, 6 insertions, 6 deletions
diff --git a/script/core/formatting.lua b/script/core/formatting.lua
index 8f72028b..6c57b8c2 100644
--- a/script/core/formatting.lua
+++ b/script/core/formatting.lua
@@ -1,11 +1,11 @@
-local code_format = require "code_format"
+local codeFormat = require("code_format")
local files = require("files")
local log = require("log")
return function(uri)
local text = files.getText(uri)
local ast = files.getState(uri)
- local status, formattedText = code_format.format(uri, text)
+ local status, formattedText = codeFormat.format(uri, text)
if not status then
if formattedText ~= nil then
diff --git a/script/core/rangeformatting.lua b/script/core/rangeformatting.lua
index b66f0fbd..de9516c1 100644
--- a/script/core/rangeformatting.lua
+++ b/script/core/rangeformatting.lua
@@ -1,11 +1,11 @@
-local code_format = require "code_format"
+local codeFormat = require("code_format")
local files = require("files")
local log = require("log")
local converter = require("proto.converter")
return function(uri, range)
local text = files.getText(uri)
- local status, formattedText, startLine, endLine = code_format.range_format(
+ local status, formattedText, startLine, endLine = codeFormat.range_format(
uri, text, range.start.line, range["end"].line)
if not status then
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index a5e0a1ca..9ca66b43 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -988,8 +988,8 @@ m.register 'config/editorconfig/update' {
abortByFileUpdate = true,
---@async
function(params)
- local code_format = require "code_format"
- local status, err = code_format.update_config(params.type, params.source.workspace, params.source.path)
+ local codeFormat = require "code_format"
+ local status, err = codeFormat.update_config(params.type, params.source.workspace, params.source.path)
if not status and err ~= nil then
log.error(err)