kickstart.nvim/lua/custom/plugins/avante.lua

37 lines
1.1 KiB
Lua

return {
{
'yetone/avante.nvim',
event = 'VeryLazy',
version = false,
opts = {
provider = 'copilot',
cursor_applying_provider = 'copilot',
copilot = {
temperature = 0,
max_tokens = 8192,
},
},
-- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
build = 'make',
-- build = "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" -- for windows
dependencies = {
'nvim-treesitter/nvim-treesitter',
-- "stevearc/dressing.nvim",
'nvim-lua/plenary.nvim',
'MunifTanjim/nui.nvim',
--
'nvim-telescope/telescope.nvim', -- for file_selector provider telescope
'hrsh7th/nvim-cmp', -- autocompletion for avante commands and mentions
'nvim-tree/nvim-web-devicons', -- or echasnovski/mini.icons
{
-- Make sure to set this up properly if you have lazy=true
'MeanderingProgrammer/render-markdown.nvim',
opts = {
file_types = { 'markdown', 'Avante' },
},
ft = { 'markdown', 'Avante' },
},
},
},
}