FIX: Changed terminal to use new vim api as neovim deprecated old

This commit is contained in:
DarthMooMancer
2025-05-01 22:00:09 -04:00
parent 908cb7ae03
commit ff360658e4
+6 -7
View File
@@ -55,15 +55,14 @@ function M.open_float_terminal(cmd)
style = "minimal", style = "minimal",
border = M.opts.border and "rounded" or "none", border = M.opts.border and "rounded" or "none",
}) })
vim.api.nvim_set_option_value("winblend", vim.o.pumblend, { win = win })
vim.api.nvim_win_set_option(win, "winblend", vim.o.pumblend) vim.api.nvim_set_option_value("winhighlight", "Normal:Pmenu,FloatBorder:Pmenu", { win = win })
vim.api.nvim_win_set_option(win, "winhighlight", "Normal:Pmenu,FloatBorder:Pmenu") vim.api.nvim_set_option_value("cursorline", true, { win = win })
vim.api.nvim_win_set_option(win, "cursorline", true) vim.api.nvim_set_option_value("scrolloff", 5, { win = win })
vim.api.nvim_win_set_option(win, "scrolloff", 5)
if(M.opts.number == true) then if(M.opts.number == true) then
vim.api.nvim_win_set_option(win, "number", true) vim.api.nvim_win_set_option("number", true, { win = win })
if(M.opts.relativenumber == true) then if(M.opts.relativenumber == true) then
vim.api.nvim_win_set_option(win, "relativenumber", true) vim.api.nvim_win_set_option("relativenumber", true, { win = win })
end end
end end