Package updates, avante config update

This commit is contained in:
2025-06-16 17:34:51 -04:00
parent 25c5ac4bba
commit 6d1ea999d6
4 changed files with 79 additions and 62 deletions

View File

@@ -1,11 +1,17 @@
return {
"yetone/avante.nvim",
event = "VeryLazy",
lazy = false,
version = false,
opts = {
provider = "copilot", -- work is paying for this so it's free for me
copilot = {
model = "claude-3.7-sonnet",
providers = {
copilot = {
model = "claude-sonnet-4",
},
},
file_selector = {
provider = "snacks", -- Avoid native provider issues
provider_opts = {},
},
},
keys = {
@@ -60,12 +66,23 @@ return {
},
},
{
-- Make sure to setup it properly if you have lazy=true
"MeanderingProgrammer/render-markdown.nvim",
optional = true,
ft = function(_, ft)
vim.list_extend(ft, { "Avante" })
end,
opts = function(_, opts)
opts.file_types = vim.list_extend(opts.file_types or {}, { "Avante" })
end,
},
{
"folke/which-key.nvim",
optional = true,
opts = {
file_types = { "markdown", "Avante" },
spec = {
{ "<leader>a", group = "ai" },
},
},
ft = { "markdown", "Avante" },
},
},
}

View File

@@ -10,7 +10,8 @@ return {
show_in_snippet = false,
},
},
keymap = { preset = "super-tab" },
-- This started to break and idk why
-- keymap = { preset = "super-tab" },
sources = {
-- Add 'avante' to the list
default = { "avante", "lsp", "path", "snippets", "buffer" },