ui.lua

Branches > main > 2822331 > files / nvim / lua / utils / ui.lua


local api = vim.api
local o = vim.o

local function open_fullscreen_window()
  local buf = api.nvim_create_buf(false, true)
  return api.nvim_open_win(buf, true, {
    relative = "editor",
    row = 0,
    col = 0,
    width = o.columns,
    height = o.lines,
    style = "minimal",
    border = "none"
  })
end

return {open_fullscreen_window = open_fullscreen_window}