refactor kiro/codex startup

This commit is contained in:
sgraves committed 2026-10-13 15:22:19 +00:00
1 parent b154bdbbab
commit 3879bf8751
2 files changed
+33 -39

No files matched your search

+4 -32
View File
@@ -268,18 +268,7 @@ function M.codex()
km.map(
km.leader "rc",
function()
vim.ui.input(
{prompt = "Codex prompt: "},
function(prompt)
local command = "codex chat --tui --resume"
if prompt and prompt ~= "" then
command = command .. " " .. vim.fn.shellescape(prompt)
end
vim.cmd("botright vertical split")
vim.cmd("terminal " .. command)
end
)
utils.single_instance_term("codex", "codex")
end,
opts
)
@@ -519,9 +508,7 @@ function M.git_blame(bufnr)
km.leader2 "tb",
function()
NV_DARCULA_ENABLE_GIT_LINE_BLAME = not NV_DARCULA_ENABLE_GIT_LINE_BLAME
require("darcula.git.blame").toggle(
NV_DARCULA_ENABLE_GIT_LINE_BLAME
)
require("darcula.git.blame").toggle(NV_DARCULA_ENABLE_GIT_LINE_BLAME)
utils.notify_setting_enabled(
"Git line blame",
NV_DARCULA_ENABLE_GIT_LINE_BLAME
@@ -530,11 +517,7 @@ function M.git_blame(bufnr)
opts
)
km.nmap(
km.leader "bl",
require("darcula.git.blame").blame_line,
opts
)
km.nmap(km.leader "bl", require("darcula.git.blame").blame_line, opts)
end
function M.gui()
@@ -586,18 +569,7 @@ function M.kiro()
km.map(
km.leader "rk",
function()
vim.ui.input(
{prompt = "Kiro prompt: "},
function(prompt)
local command = "kiro-cli chat --tui --resume --v3"
if prompt and prompt ~= "" then
command = command .. " " .. vim.fn.shellescape(prompt)
end
vim.cmd("botright vertical split")
vim.cmd("terminal " .. command)
end
)
utils.single_instance_term("kiro", "kiro-cli chat --tui --resume --v3")
end,
opts
)