new lua style

This commit is contained in:
2025-04-17 21:58:34 +02:00
parent 92ec6976c5
commit 8b99910bb4
26 changed files with 109 additions and 583 deletions

View File

@ -23,9 +23,7 @@ return {
local lazygit = Terminal:new({
cmd = 'lazygit',
direction = 'float',
cwd = function()
return vim.fn.getcwd()
end,
cwd = function() return vim.fn.getcwd() end,
float_opts = {
border = 'double',
},
@ -35,9 +33,7 @@ return {
vim.api.nvim_buf_set_keymap(term.bufnr, 'n', 'q', '<cmd>close<CR>', { noremap = true, silent = true })
end,
-- function to run on closing the terminal
on_close = function(term)
vim.cmd('startinsert!')
end,
on_close = function(term) vim.cmd('startinsert!') end,
})
lazygit:open()
end