nvim: clean up avante
This commit is contained in:
parent
7474eafbcb
commit
c4c651ad24
1 changed files with 67 additions and 20 deletions
|
@ -4,26 +4,7 @@ return {
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"stevearc/dressing.nvim",
|
"stevearc/dressing.nvim",
|
||||||
{
|
"ibhagwan/fzf-lua",
|
||||||
"MeanderingProgrammer/render-markdown.nvim",
|
|
||||||
optional = true,
|
|
||||||
ft = function(_, ft)
|
|
||||||
vim.list_extend(ft, { "Avante" })
|
|
||||||
return ft
|
|
||||||
end,
|
|
||||||
opts = function(_, opts)
|
|
||||||
opts.file_types = vim.list_extend(opts.file_types or {}, { "Avante" })
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"folke/which-key.nvim",
|
|
||||||
optional = true,
|
|
||||||
opts = {
|
|
||||||
spec = {
|
|
||||||
{ "<leader>a", group = "ai" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
init = function()
|
init = function()
|
||||||
local anthropic = require("lib").get_secret("anthropic")
|
local anthropic = require("lib").get_secret("anthropic")
|
||||||
|
@ -34,9 +15,56 @@ return {
|
||||||
opts = {
|
opts = {
|
||||||
hints = { enabled = false },
|
hints = { enabled = false },
|
||||||
provider = "claude",
|
provider = "claude",
|
||||||
|
auto_suggestions_provider = "claude",
|
||||||
|
claude = {
|
||||||
|
endpoint = "https://api.anthropic.com",
|
||||||
|
model = "claude-3-5-sonnet-20241022",
|
||||||
|
temperature = 0,
|
||||||
|
max_tokens = 4096,
|
||||||
|
},
|
||||||
|
file_selector = {
|
||||||
|
provider = "fzf",
|
||||||
|
provider_opts = {},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
build = "make",
|
build = "make",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"saghen/blink.cmp",
|
||||||
|
lazy = true,
|
||||||
|
dependencies = { "saghen/blink.compat" },
|
||||||
|
opts = {
|
||||||
|
sources = {
|
||||||
|
default = { "avante_commands", "avante_mentions", "avante_files" },
|
||||||
|
compat = {
|
||||||
|
"avante_commands",
|
||||||
|
"avante_mentions",
|
||||||
|
"avante_files",
|
||||||
|
},
|
||||||
|
-- LSP score_offset is typically 60
|
||||||
|
providers = {
|
||||||
|
avante_commands = {
|
||||||
|
name = "avante_commands",
|
||||||
|
module = "blink.compat.source",
|
||||||
|
score_offset = 90,
|
||||||
|
opts = {},
|
||||||
|
},
|
||||||
|
avante_files = {
|
||||||
|
name = "avante_files",
|
||||||
|
module = "blink.compat.source",
|
||||||
|
score_offset = 100,
|
||||||
|
opts = {},
|
||||||
|
},
|
||||||
|
avante_mentions = {
|
||||||
|
name = "avante_mentions",
|
||||||
|
module = "blink.compat.source",
|
||||||
|
score_offset = 1000,
|
||||||
|
opts = {},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"zbirenbaum/copilot.lua",
|
"zbirenbaum/copilot.lua",
|
||||||
optional = true,
|
optional = true,
|
||||||
|
@ -55,4 +83,23 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"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 = {
|
||||||
|
spec = {
|
||||||
|
{ "<leader>a", group = "ai" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue