Commands suggestions acception #2691
Unanswered
mAmineChniti
asked this question in
Q&A
Replies: 1 comment
-
|
here's my avante config btw return {
'yetone/avante.nvim',
build = 'make',
event = 'VeryLazy',
version = false, -- Never set this value to "*"! Never!
---@module 'avante'
---@type avante.Config
opts = {
provider = 'gemini',
providers = {
gemini = {
endpoint = nil, -- only needed if not default
model = 'gemini-2.0-flash',
timeout = 120000,
extra_request_body = {},
},
ollama = {
endpoint = 'http://127.0.0.1:11434',
model = nil, -- you can omit or set default
timeout = 30000,
extra_request_body = {
options = {
temperature = 0,
num_ctx = 20480,
},
},
},
['ollama-codellama'] = {
__inherited_from = 'ollama',
model = 'codellama:7b',
timeout = 30000,
extra_request_body = {
temperature = 0,
max_tokens = 8192,
},
},
},
web_search_engine = { provider = 'google' },
behaviour = {
minimize_diff = false,
enable_cursor_planning_mode = true,
},
mappings = {
suggestion = {
accept = '<C-y>', -- Ctrl+Y will accept suggestion
},
},
},
dependencies = {
'nvim-lua/plenary.nvim',
'MunifTanjim/nui.nvim',
'echasnovski/mini.pick',
'nvim-telescope/telescope.nvim',
'hrsh7th/nvim-cmp',
'ibhagwan/fzf-lua',
'stevearc/dressing.nvim',
'folke/snacks.nvim',
'nvim-tree/nvim-web-devicons',
'zbirenbaum/copilot.lua',
{
-- support for image pasting
'HakonHarnes/img-clip.nvim',
event = 'VeryLazy',
opts = {
default = {
embed_image_as_base64 = false,
prompt_for_file_name = false,
drag_and_drop = {
insert_mode = true,
},
use_absolute_path = true,
},
},
},
{
-- Make sure to set this up properly if you have lazy=true
'MeanderingProgrammer/render-markdown.nvim',
opts = {
file_types = { 'markdown', 'Avante' },
},
ft = { 'markdown', 'Avante' },
},
},
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I was wondering how can i go through and accept a command suggestion from this type of avante menu:

Beta Was this translation helpful? Give feedback.
All reactions