From 4a0aaac043f0668cfe4043d1b8fa06761bd064be Mon Sep 17 00:00:00 2001 From: caiowakamatsu Date: Wed, 19 Nov 2025 13:35:24 -0300 Subject: [PATCH] fix? --- nvim/lua/util/float.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/nvim/lua/util/float.lua b/nvim/lua/util/float.lua index f11e1d8..dd38b64 100644 --- a/nvim/lua/util/float.lua +++ b/nvim/lua/util/float.lua @@ -7,12 +7,13 @@ function M.float_terminal(cmd, opts) local height = math.floor(vim.o.lines * (opts.height_ratio or 0.5)) local row = math.floor((vim.o.lines - height) / 2) local col = math.floor((vim.o.columns - width) / 2) - vim.api.nvim_open_win(buf, true, { + + -- FIX: 'buf' should be the first argument, not inside the options table. + vim.api.nvim_open_win(buf, true, { style = "minimal", relative = "editor", width = width, height = height, row = row, col = col, border = opts.border or "rounded", - -- Set the buffer for the new window - buf = buf, + -- The key 'buf' was removed from here. }) -- --- START MODIFICATION ---