From 640eccae4cfc1a585181ca705433ae9397958355 Mon Sep 17 00:00:00 2001 From: Dennis Date: Mon, 27 Jan 2025 23:10:40 +0100 Subject: [PATCH] Adds config for avante AI client --- .../nvim/config/lua/plugins/avante.lua | 29 +++++++++++++++++++ .../nvim/config/lua/plugins/orgmode.lua | 2 +- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 home/modules/nvim/config/lua/plugins/avante.lua diff --git a/home/modules/nvim/config/lua/plugins/avante.lua b/home/modules/nvim/config/lua/plugins/avante.lua new file mode 100644 index 0000000..7683d20 --- /dev/null +++ b/home/modules/nvim/config/lua/plugins/avante.lua @@ -0,0 +1,29 @@ +return { + "yetone/avante.nvim", + event = "VeryLazy", + lazy = false, + 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 = { + provider = "claude", + }, + -- 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 = { + "stevearc/dressing.nvim", + "nvim-lua/plenary.nvim", + "MunifTanjim/nui.nvim", + --- The below dependencies are optional, + "nvim-telescope/telescope.nvim", -- for file_selector provider telescope + "hrsh7th/nvim-cmp", -- autocompletion for avante commands and mentions + "nvim-tree/nvim-web-devicons", + { + -- Make sure to set this up properly if you have lazy=true + "MeanderingProgrammer/render-markdown.nvim", + opts = { + file_types = { "markdown", "Avante" }, + }, + ft = { "markdown", "Avante" }, + }, + }, +} diff --git a/home/modules/nvim/config/lua/plugins/orgmode.lua b/home/modules/nvim/config/lua/plugins/orgmode.lua index 27a7c95..93efdc7 100644 --- a/home/modules/nvim/config/lua/plugins/orgmode.lua +++ b/home/modules/nvim/config/lua/plugins/orgmode.lua @@ -10,7 +10,7 @@ return { org_agenda_files = "~/orgnzr/**/*", org_default_notes_file = "~/orgnzr/inbox.org", org_todo_keywords = { "PROJECT(p)", "TODO(t)", "NEXT(n)", "|", "DONE(d)" }, - win_split_mode = "120vsplit", + win_split_mode = "auto", org_startup_indented = true, org_indent_mode_turns_off_org_adapt_indentation = true, org_hide_leading_stars = true,