Skip to content

Commit 83601f5

Browse files
committed
👽 Compat(termopen): update deprecated api call for termopen
Use the recommended vim.fn.jobstart over deprecated vim.fn.termopen Please let me know if this causes any issues with older nvim versions. In my testing it seems to work well but I can implement a version check if needed for compatibility on older installs.
1 parent be6b569 commit 83601f5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/nvim_updater/utils.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,8 @@ function U.open_floating_terminal(command_or_opts, filetype, ispreupdate, autocl
293293
end
294294

295295
-- Run the terminal command
296-
vim.fn.termopen(command, {
296+
vim.fn.jobstart(command, {
297+
term = true, -- Use terminal mode
297298
on_stdout = function(_, data)
298299
if data then
299300
for _, line in ipairs(data) do

0 commit comments

Comments
 (0)