Dernière activité 1730982960

Révision 48a5c4616704df6deafd62f1e9946ca97228a84b

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