Skip to content

Commit eb8d3e8

Browse files
committed
fix(term): replace deprecated termopen with jobstart()
1 parent 57091b0 commit eb8d3e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/nvchad/term/init.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,9 @@ local function create(opts)
104104

105105
save_term_info(opts.buf, opts)
106106

107+
opts.termopen_opts = vim.tbl_extend("force", opts.termopen_opts or {}, { term = true })
107108
if not buf_exists then
108-
vim.fn.termopen(cmd, opts.termopen_opts or { detach = false })
109+
vim.fn.jobstart(cmd, opts.termopen_opts)
109110
end
110111

111112
vim.g.nvhterm = opts.pos == "sp"

0 commit comments

Comments
 (0)