-
|
Hi guys i use AstroNvim and i try this config on my lazy config , i cannot enable autocomplete like cusror / copilot can you help me ? here my lazy config : {
"yetone/avante.nvim",
event = "VeryLazy",
lazy = false,
version = "*",
opts = {
provider = "claude",
auto_suggestions_provider = "claude",
claude = {
endpoint = "https://api.anthropic.com",
model = "claude-3-5-sonnet-20241022",
temperature = 0,
max_tokens = 4096,
},
behaviour = {
auto_suggestions = false, -- Experimental stage
auto_set_highlight_group = true,
auto_set_keymaps = true,
auto_apply_diff_after_generation = false,
support_paste_from_clipboard = false,
minimize_diff = true, -- Whether to remove unchanged lines when applying a code block
},
},
build = "make",
dependencies = {
"stevearc/dressing.nvim",
"nvim-lua/plenary.nvim",
"MunifTanjim/nui.nvim",
"echasnovski/mini.pick",
"nvim-telescope/telescope.nvim",
"hrsh7th/nvim-cmp",
"ibhagwan/fzf-lua",
"nvim-tree/nvim-web-devicons",
"zbirenbaum/copilot.lua",
{
"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,
},
},
},
{
"MeanderingProgrammer/render-markdown.nvim",
opts = {
file_types = { "markdown", "Avante" },
},
ft = { "markdown", "Avante" },
},
},
},
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Do you have more details on what you mean by not working? There were a few things I ran into with this myself, namely I did not realize that the auto_suggestion feature is a runtime enabled option (default: leader-as). Once I understood that and toggled it started working. The other thing you might want to check is whether you the built in cmp plugin is taking precedence. |
Beta Was this translation helpful? Give feedback.
-
|
Is this what your issue is? In that case refer to the default key binds here: To accept it's |
Beta Was this translation helpful? Give feedback.
@fiqryq
Is this what your issue is?
Autocomplete shows up in virtual text, but pressing Tab does NOT accept it?
In that case refer to the default key binds here:
https://github.com/yetone/avante.nvim?tab=readme-ov-file#default-setup-configuration
To accept it's
<M+l>, Meta + l.Meta is likely alt or opt, depending on your system.