Last active 1730982960

knox revised this gist 1730982960. Go to revision

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" })
Newer Older