summaryrefslogtreecommitdiff
path: root/pkgs/custom-neovim/config/lua/lazygit.lua
blob: ff13a49d27bb80fca4220340700564436153e59a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
-- Lazygit Integration

Lazygit = function()
  local buf = vim.api.nvim_create_buf(false, true)
  local opts = {
    relative = 'editor',
    width = 80,
    height = 20,
    row = 5,
    col = 5,
    style = 'minimal',
    border = 'rounded',
  }
  local win = vim.api.nvim_open_win(buf, true, opts)
  vim.cmd.terminal("lazygit")
end