Skip to content

Commit eaf84d8

Browse files
committed
fix: commands
1 parent 0cb9c1e commit eaf84d8

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lua/text-transform/commands.lua

+8-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,14 @@ function TextTransform.init_commands()
2424
end
2525

2626
-- specific popups
27-
vim.api.nvim_create_user_command("TtTelescope", popup.telescope_popup, {})
28-
vim.api.nvim_create_user_command("TtSelect", popup.select_popup, {})
27+
vim.api.nvim_create_user_command("TtTelescope", function()
28+
local telescope = require("text-transform.telescope")
29+
telescope.telescope_popup()
30+
end, {})
31+
vim.api.nvim_create_user_command("TtSelect", function()
32+
local select = require("text-transform.select")
33+
select.select_popup()
34+
end, {})
2935

3036
-- auto popup by config
3137
vim.api.nvim_create_user_command("TextTransform", popup.show_popup, {})

0 commit comments

Comments
 (0)