diff --git a/README.md b/README.md index 11554cb..cef70b4 100644 --- a/README.md +++ b/README.md @@ -22,25 +22,25 @@ https://github.com/user-attachments/assets/86140bfd-08b4-483d-a887-1b701d9e37dd Install `avante.nvim` using [lazy.nvim](https://github.com/folke/lazy.nvim): - ```lua - { - "yetone/avante.nvim", - event = "VeryLazy", - opts = {}, - build = "make", - dependencies = { - "nvim-tree/nvim-web-devicons", - { - "grapp-dev/nui-components.nvim", - dependencies = { - "MunifTanjim/nui.nvim" - } - }, - "nvim-lua/plenary.nvim", - "MeanderingProgrammer/render-markdown.nvim", + ```lua + { + "yetone/avante.nvim", + event = "VeryLazy", + opts = {}, + build = "make", + dependencies = { + "nvim-tree/nvim-web-devicons", + { + "grapp-dev/nui-components.nvim", + dependencies = { + "MunifTanjim/nui.nvim" + } }, - } - ``` + "nvim-lua/plenary.nvim", + "MeanderingProgrammer/render-markdown.nvim", + }, + } + ``` > [!IMPORTANT] > @@ -49,47 +49,47 @@ Install `avante.nvim` using [lazy.nvim](https://github.com/folke/lazy.nvim): Default setup configuration: - ```lua - { - provider = "claude", -- "claude" or "openai" or "azure" - openai = { - endpoint = "https://api.openai.com", - model = "gpt-4o", - temperature = 0, - max_tokens = 4096, + ```lua + { + provider = "claude", -- "claude" or "openai" or "azure" + openai = { + endpoint = "https://api.openai.com", + model = "gpt-4o", + temperature = 0, + max_tokens = 4096, + }, + azure = { + endpoint = "", -- Example: "https://.openai.azure.com" + deployment = "", -- Azure deployment name (e.g., "gpt-4o", "my-gpt-4o-deployment") + api_version = "2024-06-01", + temperature = 0, + max_tokens = 4096, + }, + claude = { + endpoint = "https://api.anthropic.com", + model = "claude-3-5-sonnet-20240620", + temperature = 0, + max_tokens = 4096, + }, + highlights = { + diff = { + current = "DiffText", -- need have background color + incoming = "DiffAdd", -- need have background color }, - azure = { - endpoint = "", -- Example: "https://.openai.azure.com" - deployment = "", -- Azure deployment name (e.g., "gpt-4o", "my-gpt-4o-deployment") - api_version = "2024-06-01", - temperature = 0, - max_tokens = 4096, + }, + mappings = { + show_sidebar = "aa", + diff = { + ours = "co", + theirs = "ct", + none = "c0", + both = "cb", + next = "]x", + prev = "[x", }, - claude = { - endpoint = "https://api.anthropic.com", - model = "claude-3-5-sonnet-20240620", - temperature = 0, - max_tokens = 4096, - }, - highlights = { - diff = { - current = "DiffText", -- need have background color - incoming = "DiffAdd", -- need have background color - }, - }, - mappings = { - show_sidebar = "aa", - diff = { - ours = "co", - theirs = "ct", - none = "c0", - both = "cb", - next = "]x", - prev = "[x", - }, - }, - } - ``` + }, + } + ``` ## Usage