Skip to content

Commit

Permalink
add method doc
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippOesch committed Sep 15, 2024
1 parent f6ab5de commit 93e6ac3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/oil/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,8 @@ M.is_floating_win = function(winid)
return vim.api.nvim_win_get_config(winid or 0).relative ~= ""
end

---@param winid nil|integer
---@return string
M.get_title = function(winid)
local src_buf = vim.api.nvim_win_get_buf(winid)
local title = vim.api.nvim_buf_get_name(src_buf)
Expand Down

0 comments on commit 93e6ac3

Please sign in to comment.