initial commit

This commit is contained in:
2025-12-30 01:31:05 -06:00
commit 24d5bcc047
20 changed files with 1045 additions and 0 deletions

11
lua/aichat.lua Normal file
View File

@@ -0,0 +1,11 @@
map("n", "<leader>aa", function()
Snacks.input.input({ prompt = "Enter prompt" }, function(value)
if value ~= nil then
vim.cmd(":read !aichat -c " .. value .. " /nothink")
-- local output = vim.fn.system("!aichat -c " .. value .. " /nothink")
-- local lines = vim.split(output, "\n", { plain = true })
-- local bufnr = target_bufnr or vim.api.nvim_get_current_buf()
-- vim.api.nvim_buf_set_lines(bufnr, 0, -1, false, lines)
end
end)
end)