diff --git a/lua/plugins/avante.lua b/lua/plugins/avante.lua index a37111f..68ab504 100644 --- a/lua/plugins/avante.lua +++ b/lua/plugins/avante.lua @@ -2,7 +2,7 @@ return { "yetone/avante.nvim", event = "VeryLazy", lazy = false, - version = false, -- set this if you want to always pull the latest change + version = true, opts = { provider = "openai", openai = { @@ -11,38 +11,13 @@ return { }, -- 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 = { + "HakonHarnes/img-clip.nvim", + "MeanderingProgrammer/render-markdown.nvim", + "MunifTanjim/nui.nvim", + "nvim-lua/plenary.nvim", + "nvim-tree/nvim-web-devicons", "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 - { - -- 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" }, - }, }, } diff --git a/lua/plugins/img-clip.lua b/lua/plugins/img-clip.lua index 66d49cb..2ffeac0 100644 --- a/lua/plugins/img-clip.lua +++ b/lua/plugins/img-clip.lua @@ -2,8 +2,14 @@ return { "HakonHarnes/img-clip.nvim", event = "BufEnter", opts = { - -- add options here - -- or leave it empty to use the default settings + default = { + embed_image_as_base64 = false, + prompt_for_file_name = false, + drag_and_drop = { + insert_mode = true, + }, + use_absolute_path = true, + }, }, keys = { -- suggested keymap diff --git a/lua/plugins/neotest.lua b/lua/plugins/neotest.lua index 0150363..7a049f3 100644 --- a/lua/plugins/neotest.lua +++ b/lua/plugins/neotest.lua @@ -5,7 +5,6 @@ return { "nvim-lua/plenary.nvim", "antoinemadec/FixCursorHold.nvim", "nvim-treesitter/nvim-treesitter", - "rcasia/neotest-java", "nvim-neotest/neotest-python", "stevanmilic/neotest-scala", }, @@ -24,7 +23,6 @@ return { }, opts = { adapters = { - ["neotest-java"] = {}, ["neotest-python"] = { runner = "pytest", args = { "-vvv" }, diff --git a/lua/plugins/overseer.lua b/lua/plugins/overseer.lua deleted file mode 100644 index 559779d..0000000 --- a/lua/plugins/overseer.lua +++ /dev/null @@ -1,4 +0,0 @@ -return { - "stevearc/overseer.nvim", - opts = {}, -} diff --git a/lua/plugins/render-markdown.lua b/lua/plugins/render-markdown.lua new file mode 100644 index 0000000..4ceee58 --- /dev/null +++ b/lua/plugins/render-markdown.lua @@ -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" }, +} diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index 4834476..843cbcf 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -38,6 +38,7 @@ return { "latex", "lua", "make", + "markdown", "markdown_inline", "nix", "proto",