|
| 1 | +return { |
| 2 | + 'yetone/avante.nvim', |
| 3 | + event = 'VeryLazy', |
| 4 | + version = false, -- Never set this value to "*"! Never! |
| 5 | + opts = { |
| 6 | + -- add any opts here |
| 7 | + -- for example |
| 8 | + provider = 'openai', |
| 9 | + openai = { |
| 10 | + endpoint = 'https://api.openai.com/v1', |
| 11 | + model = 'gpt-4o-mini', -- your desired model (or use gpt-4o, etc.) |
| 12 | + timeout = 30000, -- Timeout in milliseconds, increase this for reasoning models |
| 13 | + temperature = 0, |
| 14 | + max_completion_tokens = 8192, -- Increase this to include reasoning tokens (for reasoning models) |
| 15 | + --reasoning_effort = "medium", -- low|medium|high, only used for reasoning models |
| 16 | + }, |
| 17 | + }, |
| 18 | + -- if you want to build from source then do `make BUILD_FROM_SOURCE=true` |
| 19 | + build = 'make', |
| 20 | + -- build = "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" -- for windows |
| 21 | + dependencies = { |
| 22 | + 'nvim-treesitter/nvim-treesitter', |
| 23 | + 'stevearc/dressing.nvim', |
| 24 | + 'nvim-lua/plenary.nvim', |
| 25 | + 'MunifTanjim/nui.nvim', |
| 26 | + --- The below dependencies are optional, |
| 27 | + 'echasnovski/mini.pick', -- for file_selector provider mini.pick |
| 28 | + 'nvim-telescope/telescope.nvim', -- for file_selector provider telescope |
| 29 | + 'hrsh7th/nvim-cmp', -- autocompletion for avante commands and mentions |
| 30 | + 'ibhagwan/fzf-lua', -- for file_selector provider fzf |
| 31 | + 'nvim-tree/nvim-web-devicons', -- or echasnovski/mini.icons |
| 32 | + 'zbirenbaum/copilot.lua', -- for providers='copilot' |
| 33 | + { |
| 34 | + -- support for image pasting |
| 35 | + 'HakonHarnes/img-clip.nvim', |
| 36 | + event = 'VeryLazy', |
| 37 | + opts = { |
| 38 | + -- recommended settings |
| 39 | + default = { |
| 40 | + embed_image_as_base64 = false, |
| 41 | + prompt_for_file_name = false, |
| 42 | + drag_and_drop = { |
| 43 | + insert_mode = true, |
| 44 | + }, |
| 45 | + -- required for Windows users |
| 46 | + use_absolute_path = true, |
| 47 | + }, |
| 48 | + }, |
| 49 | + }, |
| 50 | + { |
| 51 | + -- Make sure to set this up properly if you have lazy=true |
| 52 | + 'MeanderingProgrammer/render-markdown.nvim', |
| 53 | + opts = { |
| 54 | + file_types = { 'markdown', 'Avante' }, |
| 55 | + }, |
| 56 | + ft = { 'markdown', 'Avante' }, |
| 57 | + }, |
| 58 | + }, |
| 59 | +} |
0 commit comments