Compare commits
4 Commits
a1f37f6b19
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
4acbd22078
|
|||
|
75982f5f5e
|
|||
|
ce65a70de4
|
|||
|
8567e7b671
|
@@ -1,5 +1,7 @@
|
|||||||
local function toggle_floating_tui(cmd)
|
local function toggle_tui(cmd, direction, size)
|
||||||
local terminal
|
local terminal
|
||||||
|
local dir = direction or "float"
|
||||||
|
local term_size = size
|
||||||
|
|
||||||
return function()
|
return function()
|
||||||
if not terminal then
|
if not terminal then
|
||||||
@@ -8,17 +10,19 @@ local function toggle_floating_tui(cmd)
|
|||||||
cmd = cmd,
|
cmd = cmd,
|
||||||
hidden = true,
|
hidden = true,
|
||||||
close_on_exit = true,
|
close_on_exit = true,
|
||||||
direction = "float",
|
direction = dir,
|
||||||
on_open = function() vim.cmd "startinsert!" end,
|
on_open = function() vim.cmd "startinsert!" end,
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
terminal:toggle()
|
terminal:toggle(term_size, dir)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local toggle_k9s = toggle_floating_tui "k9s"
|
local toggle_k9s = toggle_tui "k9s"
|
||||||
local toggle_ghdash = toggle_floating_tui "gh-dash"
|
local toggle_ghdash = toggle_tui "gh-dash"
|
||||||
|
local toggle_ai_opencode = toggle_tui("opencode", "vertical", 80)
|
||||||
|
local toggle_ai_copilot = toggle_tui("copilot", "vertical", 80)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
@@ -36,6 +40,15 @@ return {
|
|||||||
toggle_ghdash,
|
toggle_ghdash,
|
||||||
desc = "GitHub dashboard",
|
desc = "GitHub dashboard",
|
||||||
},
|
},
|
||||||
|
["<Leader>a"] = { desc = "AI" },
|
||||||
|
["<Leader>ao"] = {
|
||||||
|
toggle_ai_opencode,
|
||||||
|
desc = "opencode",
|
||||||
|
},
|
||||||
|
["<Leader>ag"] = {
|
||||||
|
toggle_ai_copilot,
|
||||||
|
desc = "GH Copilot",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -13,11 +13,15 @@
|
|||||||
userEmail = userEmail;
|
userEmail = userEmail;
|
||||||
|
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
|
commit.gpgsign = true;
|
||||||
|
gpg.format = "ssh";
|
||||||
|
gpg.ssh.allowedSignersFile = "~/.config/git/allowed_signers";
|
||||||
init.defaultBranch = "master";
|
init.defaultBranch = "master";
|
||||||
push.autoSetupRemote = true;
|
|
||||||
pull.rebase = false;
|
|
||||||
merge.tool = "nvimdiff";
|
merge.tool = "nvimdiff";
|
||||||
mergetool.keepBackup = false;
|
mergetool.keepBackup = false;
|
||||||
|
push.autoSetupRemote = true;
|
||||||
|
pull.rebase = false;
|
||||||
|
user.signingkey = "~/.ssh/id_ed25519_sk.pub";
|
||||||
};
|
};
|
||||||
|
|
||||||
ignores = [
|
ignores = [
|
||||||
|
|||||||
@@ -31,7 +31,6 @@
|
|||||||
body = ''
|
body = ''
|
||||||
set memes \
|
set memes \
|
||||||
"Crazy? I was crazy once. They locked me in a room. A rubber room. A rubber room with rats. And rats make me crazy." \
|
"Crazy? I was crazy once. They locked me in a room. A rubber room. A rubber room with rats. And rats make me crazy." \
|
||||||
"Daddy, chill!" \
|
|
||||||
"What the hell is even that?!" \
|
"What the hell is even that?!" \
|
||||||
"Road work ahead? Yeah, I sure hope it does!" \
|
"Road work ahead? Yeah, I sure hope it does!" \
|
||||||
"Look at all those chickens!" \
|
"Look at all those chickens!" \
|
||||||
@@ -40,7 +39,6 @@
|
|||||||
"I didn't get no sleep cause of y'all, y'all not gone get any sleep cause of me!" \
|
"I didn't get no sleep cause of y'all, y'all not gone get any sleep cause of me!" \
|
||||||
"This is the dollar store, how good can it be?" \
|
"This is the dollar store, how good can it be?" \
|
||||||
"That was legitness" \
|
"That was legitness" \
|
||||||
"Deez nuts" \
|
|
||||||
"I wanna be a cowboy baby" \
|
"I wanna be a cowboy baby" \
|
||||||
"Can I get a waffle? Can I please get a waffle?" \
|
"Can I get a waffle? Can I please get a waffle?" \
|
||||||
"I'm lesbian. I thought you were American." \
|
"I'm lesbian. I thought you were American." \
|
||||||
|
|||||||
Reference in New Issue
Block a user