From 1d09f3bd87645e930bf93c14e5790b9297c49075 Mon Sep 17 00:00:00 2001 From: CppCXY <812125110@qq.com> Date: Thu, 27 Apr 2023 16:20:06 +0800 Subject: =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/provider/name-style.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'script/provider/name-style.lua') 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 -- cgit v1.2.3