addet ai again

This commit is contained in:
pika 2025-04-04 21:52:00 +02:00
parent bef9661e9c
commit 25790de5b4
4 changed files with 60 additions and 64 deletions

1
.gitignore vendored
View file

@ -15,3 +15,4 @@
lazy-lock.json lazy-lock.json
cd-project.nvim.json cd-project.nvim.json
custom/

View file

@ -1,69 +1,61 @@
return { return {
{ {
"yetone/avante.nvim", "yetone/avante.nvim",
event = "VeryLazy", event = "VeryLazy",
version = false, -- Set this to "*" to always pull the latest release version, or set it to false to update to the latest code changes. version = false, -- Set this to "*" to always pull the latest release version, or set it to false to update to the latest code changes.
opts = { opts = {
-- add any opts here -- add any opts here
-- for example -- for example
provider = "openai", provider = "openai",
openai = { openai = {
endpoint = "https://api.openai.com/v1", endpoint = "https://api.openai.com/v1",
model = "gpt-4o", -- your desired model (or use gpt-4o, etc.) model = "gpt-4o", -- your desired model (or use gpt-4o, etc.)
timeout = 30000, -- timeout in milliseconds timeout = 30000, -- timeout in milliseconds
temperature = 0, -- adjust if needed temperature = 0, -- adjust if needed
max_tokens = 4096, max_tokens = 4096,
-- reasoning_effort = "high" -- only supported for reasoning models (o1, etc.) -- reasoning_effort = "high" -- only supported for reasoning models (o1, etc.)
},
}, },
}, -- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
-- if you want to build from source then do `make BUILD_FROM_SOURCE=true` build = "make",
build = "make", -- build = "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" -- for windows
-- build = "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" -- for windows dependencies = {
dependencies = { "nvim-treesitter/nvim-treesitter",
"nvim-treesitter/nvim-treesitter", "stevearc/dressing.nvim",
"stevearc/dressing.nvim", "nvim-lua/plenary.nvim",
"nvim-lua/plenary.nvim", "MunifTanjim/nui.nvim",
"MunifTanjim/nui.nvim", --- The below dependencies are optional,
--- The below dependencies are optional, "echasnovski/mini.pick", -- for file_selector provider mini.pick
"echasnovski/mini.pick", -- for file_selector provider mini.pick "nvim-telescope/telescope.nvim", -- for file_selector provider telescope
"nvim-telescope/telescope.nvim", -- for file_selector provider telescope "hrsh7th/nvim-cmp", -- autocompletion for avante commands and mentions
"hrsh7th/nvim-cmp", -- autocompletion for avante commands and mentions "ibhagwan/fzf-lua", -- for file_selector provider fzf
"ibhagwan/fzf-lua", -- for file_selector provider fzf "nvim-tree/nvim-web-devicons", -- or echasnovski/mini.icons
"nvim-tree/nvim-web-devicons", -- or echasnovski/mini.icons "zbirenbaum/copilot.lua", -- for providers='copilot'
"zbirenbaum/copilot.lua", -- for providers='copilot' {
{ -- support for image pasting
-- support for image pasting "HakonHarnes/img-clip.nvim",
"HakonHarnes/img-clip.nvim", event = "VeryLazy",
event = "VeryLazy", opts = {
opts = { -- recommended settings
-- recommended settings default = {
default = { embed_image_as_base64 = false,
embed_image_as_base64 = false, prompt_for_file_name = false,
prompt_for_file_name = false, drag_and_drop = {
drag_and_drop = { insert_mode = true,
insert_mode = true, },
-- required for Windows users
use_absolute_path = true,
}, },
-- required for Windows users
use_absolute_path = true,
}, },
}, },
}, {
{ -- Make sure to set this up properly if you have lazy=true
-- Make sure to set this up properly if you have lazy=true "MeanderingProgrammer/render-markdown.nvim",
"MeanderingProgrammer/render-markdown.nvim", opts = {
opts = { file_types = { "markdown", "Avante" },
file_types = { "markdown", "Avante" }, },
ft = { "markdown", "Avante" },
}, },
ft = { "markdown", "Avante" },
}, },
}, },
},
{
"olimorris/codecompanion.nvim",
config = true,
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-treesitter/nvim-treesitter",
},
},
} }

View file

@ -1,4 +1,6 @@
if true then return {} end -- if true then
-- return {}
-- end
-- WARNING: If this line is true, then the plugin will NOT get sourced! -- WARNING: If this line is true, then the plugin will NOT get sourced!
-- NOTE: Has to be commented out if blink should be used -- NOTE: Has to be commented out if blink should be used
@ -33,6 +35,7 @@ return {
-- C-k: Toggle signature help (if signature.enabled = true) -- C-k: Toggle signature help (if signature.enabled = true)
-- --
-- See :h blink-cmp-config-keymap for defining your own keymap -- See :h blink-cmp-config-keymap for defining your own keymap
cmdline = { sources = { "cmdline" } },
keymap = { keymap = {
-- set to 'none' to disable the 'default' preset -- set to 'none' to disable the 'default' preset
preset = "super-tab", preset = "super-tab",

View file

@ -1,6 +1,6 @@
-- if true then if true then
-- return {} return {}
-- end end
-- WARNING: If this line is true, then the plugin will NOT get sourced! -- WARNING: If this line is true, then the plugin will NOT get sourced!
-- NOTE: Has to be commented out if blink should be used -- NOTE: Has to be commented out if blink should be used