summaryrefslogtreecommitdiff
path: root/pkgs/custom-neovim/config/lua/lazygit.lua
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/custom-neovim/config/lua/lazygit.lua')
-rw-r--r--pkgs/custom-neovim/config/lua/lazygit.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/pkgs/custom-neovim/config/lua/lazygit.lua b/pkgs/custom-neovim/config/lua/lazygit.lua
new file mode 100644
index 0000000..ff13a49
--- /dev/null
+++ b/pkgs/custom-neovim/config/lua/lazygit.lua
@@ -0,0 +1,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