diff options
| author | ThePrimeAgain <theprimeagain@theprimeagain.com> | 2026-01-15 22:17:39 -0700 |
|---|---|---|
| committer | ThePrimeAgain <theprimeagain@theprimeagain.com> | 2026-01-15 22:17:39 -0700 |
| commit | b168bc747b09ce904a6e2b8bf4e2145f4b2aa7aa (patch) | |
| tree | 3af588690b29179764739b7de037c79830879341 /lua/99/init.lua | |
| parent | a91be0f9edde34e6cd85d0e9f7730c5866d99e08 (diff) | |
| download | a4-b168bc747b09ce904a6e2b8bf4e2145f4b2aa7aa.tar.xz a4-b168bc747b09ce904a6e2b8bf4e2145f4b2aa7aa.zip | |
pr ready
Diffstat (limited to 'lua/99/init.lua')
| -rw-r--r-- | lua/99/init.lua | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/lua/99/init.lua b/lua/99/init.lua index f0a59ef..8d385ac 100644 --- a/lua/99/init.lua +++ b/lua/99/init.lua @@ -24,11 +24,11 @@ end --- @param opts _99.ops.Opts? --- @return _99.ops.Opts local function process_opts(opts) - opts = opts or {} - for i, rule in ipairs(opts.additional_rules or {}) do - opts.additional_rules[i] = expand(rule) - end - return opts + opts = opts or {} + for i, rule in ipairs(opts.additional_rules or {}) do + opts.additional_rules[i] = expand(rule) + end + return opts end --- @alias _99.Cleanup fun(): nil @@ -191,7 +191,9 @@ end --- @param path string function _99:rule_from_path(path) - return Agents.get_rule_by_path(_99_state.rules, expand(path)) + _ = self + path = expand(path) --[[ @as string]] + return Agents.get_rule_by_path(_99_state.rules, path) end --- @param opts? _99.ops.Opts |
