最后活跃于 1730982960

knox 修订了这个 Gist 1730982960. 跳至此修订

1 file changed, 6 insertions

avante.nvim-8.lua(file created)

@@ -0,0 +1,6 @@
1 + vim.api.nvim_create_autocmd("User", {
2 + pattern = "ToggleMyPrompt"
3 + callback = function() require("avante.config").override({system_prompt = "MY CUSTOM SYSTEM PROMPT"}) end,
4 + })
5 +
6 + vim.keymap.set("n", "<leader>am", function() vim.api.nvim_exec_autocmds("User", { pattern = "ToggleMyPrompt" }) end, { desc = "avante: toggle my prompt" })
更新 更早