avante plugin related cleanup

This commit is contained in:
Salar Rahmanian 2024-10-20 19:35:38 -07:00
parent 0baf336e89
commit 38aaf6cffc
6 changed files with 26 additions and 39 deletions

View file

@ -2,7 +2,7 @@ return {
"yetone/avante.nvim", "yetone/avante.nvim",
event = "VeryLazy", event = "VeryLazy",
lazy = false, lazy = false,
version = false, -- set this if you want to always pull the latest change version = true,
opts = { opts = {
provider = "openai", provider = "openai",
openai = { openai = {
@ -11,38 +11,13 @@ return {
}, },
-- 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
dependencies = { dependencies = {
"HakonHarnes/img-clip.nvim",
"MeanderingProgrammer/render-markdown.nvim",
"MunifTanjim/nui.nvim",
"nvim-lua/plenary.nvim",
"nvim-tree/nvim-web-devicons",
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter",
"stevearc/dressing.nvim", "stevearc/dressing.nvim",
"nvim-lua/plenary.nvim",
"MunifTanjim/nui.nvim",
--- The below dependencies are optional,
"nvim-tree/nvim-web-devicons", -- or echasnovski/mini.icons
{
-- 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" },
},
}, },
} }

View file

@ -2,8 +2,14 @@ return {
"HakonHarnes/img-clip.nvim", "HakonHarnes/img-clip.nvim",
event = "BufEnter", event = "BufEnter",
opts = { opts = {
-- add options here default = {
-- or leave it empty to use the default settings embed_image_as_base64 = false,
prompt_for_file_name = false,
drag_and_drop = {
insert_mode = true,
},
use_absolute_path = true,
},
}, },
keys = { keys = {
-- suggested keymap -- suggested keymap

View file

@ -5,7 +5,6 @@ return {
"nvim-lua/plenary.nvim", "nvim-lua/plenary.nvim",
"antoinemadec/FixCursorHold.nvim", "antoinemadec/FixCursorHold.nvim",
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter",
"rcasia/neotest-java",
"nvim-neotest/neotest-python", "nvim-neotest/neotest-python",
"stevanmilic/neotest-scala", "stevanmilic/neotest-scala",
}, },
@ -24,7 +23,6 @@ return {
}, },
opts = { opts = {
adapters = { adapters = {
["neotest-java"] = {},
["neotest-python"] = { ["neotest-python"] = {
runner = "pytest", runner = "pytest",
args = { "-vvv" }, args = { "-vvv" },

View file

@ -1,4 +0,0 @@
return {
"stevearc/overseer.nvim",
opts = {},
}

View file

@ -0,0 +1,11 @@
return {
"MeanderingProgrammer/render-markdown.nvim",
dependencies = { "nvim-treesitter/nvim-treesitter", "nvim-tree/nvim-web-devicons" },
---@module 'render-markdown'
---@type render.md.UserConfig
opts = {
file_types = { "markdown", "Avante" },
render_modes = true,
},
ft = { "markdown", "Avante" },
}

View file

@ -38,6 +38,7 @@ return {
"latex", "latex",
"lua", "lua",
"make", "make",
"markdown",
"markdown_inline", "markdown_inline",
"nix", "nix",
"proto", "proto",