mirror of
https://github.com/iDvel/rime-ice.git
synced 2026-05-14 00:30:37 +08:00
chore: general upkeep
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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' )
|
||||
|
||||
Reference in New Issue
Block a user