[added kiro-cli/codex keymaps] [mason installs should be async]
This commit is contained in:
@@ -263,6 +263,28 @@ if NV_DARCULA_ENABLE_COC then
|
||||
end
|
||||
end
|
||||
|
||||
function M.codex()
|
||||
local opts = {silent = true}
|
||||
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
|
||||
)
|
||||
end,
|
||||
opts
|
||||
)
|
||||
end
|
||||
|
||||
function M.commenting()
|
||||
local opts = {remap = true, silent = true}
|
||||
|
||||
@@ -561,6 +583,28 @@ function M.gui()
|
||||
end
|
||||
end
|
||||
|
||||
function M.kiro()
|
||||
local opts = {silent = true}
|
||||
km.map(
|
||||
km.leader "rk",
|
||||
function()
|
||||
vim.ui.input(
|
||||
{prompt = "Kiro prompt: "},
|
||||
function(prompt)
|
||||
local command = "kiro-cli 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
|
||||
)
|
||||
end,
|
||||
opts
|
||||
)
|
||||
end
|
||||
|
||||
if not NV_DARCULA_ENABLE_COC then
|
||||
function M.lsp()
|
||||
local opts = {remap = false, silent = true}
|
||||
@@ -1441,6 +1485,7 @@ end
|
||||
if NV_DARCULA_ENABLE_COC then
|
||||
M.coc()
|
||||
end
|
||||
M.codex()
|
||||
M.commenting()
|
||||
M.cppman()
|
||||
M.cspell()
|
||||
@@ -1448,6 +1493,7 @@ end
|
||||
M.editing()
|
||||
M.flutter()
|
||||
M.gui()
|
||||
M.kiro()
|
||||
if not NV_DARCULA_ENABLE_COC then
|
||||
M.lsp()
|
||||
end
|
||||
|
||||
@@ -43,6 +43,5 @@ installer.setup {
|
||||
["mason-null-ls"] = false,
|
||||
["mason-nvim-dap"] = false
|
||||
},
|
||||
run_on_start = false
|
||||
run_on_start = true
|
||||
}
|
||||
installer.check_install(false, true)
|
||||
|
||||
Reference in New Issue
Block a user