Signed-off-by: Christoph Schmatzler <christoph@schmatzler.com>
This commit is contained in:
2025-11-12 07:38:24 +00:00
parent ae8259193b
commit 15d994fac2
9 changed files with 39 additions and 28 deletions

View File

@@ -128,27 +128,10 @@
key = "<leader>gg";
action.__raw = ''
function()
local Terminal = require('toggleterm.terminal').Terminal
local lazygit = Terminal:new({
cmd = "lazygit",
dir = "git_dir",
direction = "float",
float_opts = {
border = "curved",
winblend = 3,
},
on_open = function(term)
vim.cmd("startinsert!")
vim.api.nvim_buf_set_keymap(term.bufnr, "n", "q", "<cmd>close<CR>", {noremap = true, silent = true})
end,
on_close = function(term)
vim.cmd("startinsert!")
end,
})
lazygit:toggle()
require('toggleterm.terminal').Terminal:new({ cmd = 'jjui', direction = 'float' }):toggle()
end
'';
options.desc = "Lazygit (toggleterm)";
options.desc = "jjui";
}
# l - lsp/formatter
{