new lua style
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user