Skip to content

Commit f3643c7

Browse files
authored
feat: support for lazy-loading dressing.nvim (#25)
1 parent 8835f90 commit f3643c7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lua/js-i18n/client.lua

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,12 @@ local utils = require("js-i18n.utils")
77
local virt_text = require("js-i18n.virt_text")
88

99
local async_ui = {
10-
input = async.wrap(vim.ui.input, 2),
11-
select = async.wrap(vim.ui.select, 3),
10+
input = function(...)
11+
return async.wrap(vim.ui.input, 2)(...)
12+
end,
13+
select = function(...)
14+
return async.wrap(vim.ui.select, 3)(...)
15+
end,
1216
}
1317

1418
if _TEST then

0 commit comments

Comments
 (0)