From c3e008dd67b5524879ac5cf1ad4aab8455ea42ed Mon Sep 17 00:00:00 2001 From: rootiest Date: Sat, 28 Dec 2024 18:41:22 -0500 Subject: [PATCH] replace deprecated termopen --- lua/data/func.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/data/func.lua b/lua/data/func.lua index 943f2a2..bb4d861 100644 --- a/lua/data/func.lua +++ b/lua/data/func.lua @@ -756,7 +756,8 @@ function M.open_floating_terminal() -- Now that the floating window is ready, we run the terminal shell in the created buffer -- Open the terminal in the buffer when we're sure the buffer is set up in the float - vim.fn.termopen(vim.o.shell, { + vim.fn.jobstart(vim.o.shell, { + term = true, -- Indicates that the job should start in a terminal on_exit = function() -- Safety measure: Ensure the window still exists before trying to close it if vim.api.nvim_win_is_valid(win) then