feat: supports full view in multi-window mode (#2660)

This commit is contained in:
yetone
2025-08-31 21:33:57 +08:00
committed by GitHub
parent ff116a5673
commit bcbe0347d8
2 changed files with 27 additions and 3 deletions

View File

@@ -1716,4 +1716,9 @@ function M.get_unified_diff(text1, text2, opts)
return vim.diff(text1, text2, opts)
end
function M.is_floating_window(win_id)
local config = vim.api.nvim_win_get_config(win_id or 0)
return config.relative ~= ""
end
return M