aboutsummaryrefslogtreecommitdiffstats
path: root/lua/modules/win.lua
blob: fd79d12a1613ba4124446d397dab712395e5dd57 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
local M = {}

function M.create(buf, a, b)
  local win = vim.api.nvim_open_win(buf, a, b)

  return win
end

function M.hide(buf)
  vim.api.nvim_win_hide(buf)
end

return M