Skip to content

Commit 64031cd

Browse files
committed
feat: implement restore modifier types
1 parent cecfaf0 commit 64031cd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lua/ninjection/config.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ local default_config = {
8282
lua = [[^%-%-%s*([%w_+%-]+)%s*$]], -- Parses "-- lang" to "lang"
8383
},
8484

85-
---@type table<string,fun(text: string): string, table<string, boolean>>
85+
---@type table<string, NJTextModifier>
8686
inj_text_modifiers = {
8787
nix = function(text)
8888
---@type string[]
@@ -164,7 +164,7 @@ local default_config = {
164164
end,
165165
},
166166

167-
---@type table<string, fun(text: string, metadata: table<string, boolean>, indents?: NJIndents): string[]>
167+
---@type table<string, NJTextRestorer>
168168
inj_text_restorers = {
169169
nix = function(text, metadata, indents)
170170
---@type string[]
@@ -283,6 +283,7 @@ M.reload = function()
283283
end
284284

285285
---@nodoc
286+
---@private
286287
--- Merges user provided configuration overrides with the default configuration.
287288
---@param cfg_overrides? NinjectionConfig
288289
---@return boolean success, string[]? errors

0 commit comments

Comments
 (0)