From 19da6656dae228ecf955e032eb2e41a5b2954331 Mon Sep 17 00:00:00 2001 From: jexjws Date: Sat, 19 Oct 2024 19:25:31 +0800 Subject: [PATCH 1/3] add plugin avante --- README_cn.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README_cn.md b/README_cn.md index 3d7087c..16581f9 100644 --- a/README_cn.md +++ b/README_cn.md @@ -119,6 +119,16 @@ +### nvim 插件 + + + + + + + +
Icon avante 开源 IDE 插件,使用 LLM 做你的编程助手
+ ### 其它 From 42de8933f182288fbaa34d6515ca3e87da5a796c Mon Sep 17 00:00:00 2001 From: hello_cmd Date: Sat, 19 Oct 2024 20:19:03 +0800 Subject: [PATCH 2/3] add avante.nvim docs --- README.md | 10 ++++ README_cn.md | 6 +-- docs/avante.nvim/README.md | 85 +++++++++++++++++++++++++++++++++ docs/avante.nvim/README_cn.md | 88 +++++++++++++++++++++++++++++++++++ 4 files changed, 186 insertions(+), 3 deletions(-) create mode 100644 docs/avante.nvim/README.md create mode 100644 docs/avante.nvim/README_cn.md diff --git a/README.md b/README.md index 9b76919..33463df 100644 --- a/README.md +++ b/README.md @@ -121,6 +121,16 @@ English/[简体中文](https://github.com/deepseek-ai/awesome-deepseek-integrati
+### neovim Extensions + + + + + + + +
Icon avante.nvim avante.nvim is an open-source autopilot in IDE
+ ### JetBrains Extensions diff --git a/README_cn.md b/README_cn.md index 16581f9..5d92948 100644 --- a/README_cn.md +++ b/README_cn.md @@ -119,12 +119,12 @@
-### nvim 插件 +### neovim 插件 - - + +
Icon avante Icon avante.nvim 开源 IDE 插件,使用 LLM 做你的编程助手
diff --git a/docs/avante.nvim/README.md b/docs/avante.nvim/README.md new file mode 100644 index 0000000..cad4c53 --- /dev/null +++ b/docs/avante.nvim/README.md @@ -0,0 +1,85 @@ +# [avante.nvim](https://github.com/yetone/avante.nvim) + +**avante.nvim** is a Neovim plugin designed to emulate the behaviour of the [Cursor](https://www.cursor.com) AI IDE. It provides users with AI-driven code suggestions and the ability to apply these recommendations directly to their source files with minimal effort. + +## Features + +- **AI-Powered Code Assistance**: Interact with AI to ask questions about your current code file and receive intelligent suggestions for improvement or modification. +- **One-Click Application**: Quickly apply the AI's suggested changes to your source code with a single command, streamlining the editing process and saving time. + +> [!IMPORTANT] +> +> The project is in rapid iteration, and this guide was last updated on October 19, 2024. Installation and configuration methods may change after this date, so please refer to the original project's README.md for the most accurate information. + +## Installation + +### Install via `lazy.nvim` + +Navigate to the nvim configuration folder (default on Linux is `~/.config/nvim`) and then to the `lua/plugins` folder. Create a file named `avante.lua` and add the following content: + +```lua +return { + { + "yetone/avante.nvim", + event = "VeryLazy", + lazy = false, + version = false, -- set this if you want to always pull the latest change + opts = { + provider = "openai", + auto_suggestions_provider = "openai", -- Since auto-suggestions are a high-frequency operation and therefore expensive, it is recommended to specify an inexpensive provider or even a free provider: copilot + openai = { + endpoint = "https://api.deepseek.com/v1", + model = "deepseek-chat", + timeout = 30000, -- Timeout in milliseconds + temperature = 0, + max_tokens = 4096, + ["local"] = false, + }, + }, + -- 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", + --- The below dependencies are optional, + "nvim-tree/nvim-web-devicons", -- or echasnovski/mini.icons + "zbirenbaum/copilot.lua", -- for providers='copilot' + { + -- support for image pasting + "HakonHarnes/img-clip.nvim", + event = "VeryLazy", + opts = { + -- recommended settings + default = { + embed_image_as_base64 = false, + prompt_for_file_name = false, + drag_and_drop = { + insert_mode = true, + }, + -- required for Windows users + use_absolute_path = true, + }, + }, + }, + { + -- Make sure to set this up properly if you have lazy=true + 'MeanderingProgrammer/render-markdown.nvim', + opts = { + file_types = { "markdown", "Avante" }, + }, + ft = { "markdown", "Avante" }, + }, + }, + }, +} +``` +Restart nvim, and `lazy.nvim` should automatically download and install the avante.nvim plugin and its dependencies based on the above file. + +### Other Installation Methods +https://github.com/yetone/avante.nvim?tab=readme-ov-file#installation + +## Usage +https://github.com/yetone/avante.nvim?tab=readme-ov-file#usage diff --git a/docs/avante.nvim/README_cn.md b/docs/avante.nvim/README_cn.md new file mode 100644 index 0000000..7649839 --- /dev/null +++ b/docs/avante.nvim/README_cn.md @@ -0,0 +1,88 @@ +# [avante.nvim](https://github.com/yetone/avante.nvim) + +**avante.nvim** 是一个旨在模拟 [Cursor](https://www.cursor.com) AI IDE 的行为的 Neovim 插件。它为用户提供 AI 驱动的代码建议,并能够以最小的努力将这些建议直接应用于他们的源文件。 + +## 功能 + + - **AI 驱动的代码辅助**:与 AI 聊天以询问有关您当前代码文件的问题,并接收改进或修改的智能建议。 + - **一键应用**:使用单个命令快速将 AI 建议的更改应用于您的源代码,简化编辑过程并节省时间。 + +> [!IMPORTANT] +> +> 该项目处于快速迭代状态,本指南更新于2024.10.19,在此日期之后的安装配置方法可能会发生变更,请以原项目README.md为准。 + + +## 安装 + +### 通过 `lazy.nvim` 安装 + +转到nvim的配置文件夹下(linux 默认是`~/.config/nvim`)的 `lua/plugins` 文件夹,创建一个名为 `avante.lua` 的文件,并在其中添加以下内容: +```lua +return { + { + "yetone/avante.nvim", + event = "VeryLazy", + lazy = false, + version = false, -- set this if you want to always pull the latest change + opts = { + provider = "openai", + auto_suggestions_provider = "openai", -- Since auto-suggestions are a high-frequency operation and therefore expensive, it is recommended to specify an inexpensive provider or even a free provider: copilot + openai = { + endpoint = "https://api.deepseek.com/v1", + model = "deepseek-chat", + timeout = 30000, -- Timeout in milliseconds + temperature = 0, + max_tokens = 4096, + ["local"] = false, + }, + }, + -- 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", + --- The below dependencies are optional, + "nvim-tree/nvim-web-devicons", -- or echasnovski/mini.icons + "zbirenbaum/copilot.lua", -- for providers='copilot' + { + -- support for image pasting + "HakonHarnes/img-clip.nvim", + event = "VeryLazy", + opts = { + -- recommended settings + default = { + embed_image_as_base64 = faslse, + prompt_for_file_name = false, + drag_and_drop = { + insert_mode = true, + }, + -- required for Windows users + use_absolute_path = true, + }, + }, + }, + { + -- Make sure to set this up properly if you have lazy=true + 'MeanderingProgrammer/render-markdown.nvim', + opts = { + file_types = { "markdown", "Avante" }, + }, + ft = { "markdown", "Avante" }, + }, + }, +}, +} +``` + +重启 nvim,此时`lazy.nvim`应该会根据上述文件帮你下载安装好 avante.nvim 插件及其依赖项。 + +### 其他安装方式 + +https://github.com/yetone/avante.nvim?tab=readme-ov-file#installation + +## 使用 + +https://github.com/yetone/avante.nvim?tab=readme-ov-file#usage \ No newline at end of file From d5e6d31fa1c780496a48c9ad16f4a2759ded1ebc Mon Sep 17 00:00:00 2001 From: jexjws Date: Sat, 19 Oct 2024 20:22:22 +0800 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 33463df..d0ab3a5 100644 --- a/README.md +++ b/README.md @@ -126,7 +126,7 @@ English/[简体中文](https://github.com/deepseek-ai/awesome-deepseek-integrati - +
Icon avante.nvim avante.nvim avante.nvim is an open-source autopilot in IDE