summaryrefslogtreecommitdiff
path: root/script/provider/name-style.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/provider/name-style.lua')
-rw-r--r--script/provider/name-style.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/script/provider/name-style.lua b/script/provider/name-style.lua
index f9c5c756..bdb20d80 100644
--- a/script/provider/name-style.lua
+++ b/script/provider/name-style.lua
@@ -5,10 +5,17 @@ end
local config = require 'config'
-
local m = {}
+m.loaded = false
+
function m.nameStyleCheck(uri, text)
+ if not m.loaded then
+ local value = config.get(nil, "Lua.nameStyle.config")
+ codeFormat.update_name_style_config(value)
+ m.loaded = true
+ end
+
return codeFormat.name_style_analysis(uri, text)
end