chore: general upkeep

This commit is contained in:
mirtlecn
2024-05-15 10:07:18 +08:00
parent 8b4093d25e
commit 7d5952d97a
7 changed files with 22 additions and 22 deletions

View File

@@ -7,7 +7,7 @@ local M = {}
function M.init(env)
local config = env.engine.schema.config
env.name_space = env.name_space:gsub('^*', '')
M.is_in_user_dict = config:get_bool(env.name_space) or nil
env.is_in_user_dict = config:get_bool(env.name_space) or nil
end
local is_user = {
@@ -17,7 +17,7 @@ local is_user = {
function M.func(input)
for cand in input:iter() do
if is_user[cand.type] == M.is_in_user_dict then
if is_user[cand.type] == env.is_in_user_dict then
cand.comment = cand.comment .. '*'
end
yield(cand)

View File

@@ -170,7 +170,7 @@ function f.init( env )
-- 配置:辅码引导符号,默认为反引号 `
local search_key = config:get_string( 'key_binder/search' ) or config:get_string( ns .. '/key' ) or '`'
env.search_key_alt = alt_lua_punc( search_key )
local code_pattern = config:get_string( ns .. '/code_pattern' ) or '[a-z]'
local code_pattern = config:get_string( ns .. '/code_pattern' ) or '[a-z;]'
-- 配置seg tag
local tag = config:get_list( ns .. '/tags' )