Skip to content

Commit 2f726eb

Browse files
committed
refactor!: 👽 Update code nvim deprecation nvim 0.11
termopen -> jobstart https://neovim.io/doc/user/deprecated.html#deprecated-0.11
1 parent 3038152 commit 2f726eb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lua/code_runner/commands.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ local function execute(command, bufname, bufname_prefix)
126126
local current_wind_id = vim.api.nvim_get_current_win()
127127
closeRunner(bufname)
128128
vim.cmd(bufname_prefix)
129-
vim.fn.termopen(command)
129+
vim.fn.jobstart(command)
130130
vim.cmd("norm G")
131131
vim.opt_local.relativenumber = false
132132
vim.opt_local.number = false

lua/code_runner/floats.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function M.floating(command)
3434
)
3535
vim.api.nvim_set_option_value("winblend", opt.float.blend, { win = win_id })
3636

37-
vim.fn.termopen(command)
37+
vim.fn.jobstart(command)
3838
if opt.startinsert then
3939
vim.cmd("startinsert")
4040
end

0 commit comments

Comments
 (0)