From 4bc2809648749076e130d4554ef1465dd5770c6f Mon Sep 17 00:00:00 2001 From: Andreas Tsouchlos Date: Mon, 10 Mar 2025 09:03:00 +0100 Subject: [PATCH] nvim: Add avante and pastify to disabled_plugins --- .../nvim/lua/disabled_plugins/avante.lua | 19 +++++++++ .../nvim/lua/disabled_plugins/pastify.lua | 41 +++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 nvim/.config/nvim/lua/disabled_plugins/avante.lua create mode 100644 nvim/.config/nvim/lua/disabled_plugins/pastify.lua diff --git a/nvim/.config/nvim/lua/disabled_plugins/avante.lua b/nvim/.config/nvim/lua/disabled_plugins/avante.lua new file mode 100644 index 0000000..592503e --- /dev/null +++ b/nvim/.config/nvim/lua/disabled_plugins/avante.lua @@ -0,0 +1,19 @@ +return { + "yetone/avante.nvim", + event = "VeryLazy", + lazy = false, + version = false, -- set this if you want to always pull the latest change + opts = { + provider = "copilot" + }, + build = "make", + dependencies = { + "stevearc/dressing.nvim", + "nvim-lua/plenary.nvim", + "MunifTanjim/nui.nvim", + --- The below dependencies are optional, + "hrsh7th/nvim-cmp", -- autocompletion for avante commands and mentions + "nvim-tree/nvim-web-devicons", -- or echasnovski/mini.icons + "zbirenbaum/copilot.lua" -- for providers='copilot' + } +} diff --git a/nvim/.config/nvim/lua/disabled_plugins/pastify.lua b/nvim/.config/nvim/lua/disabled_plugins/pastify.lua new file mode 100644 index 0000000..03e0f5b --- /dev/null +++ b/nvim/.config/nvim/lua/disabled_plugins/pastify.lua @@ -0,0 +1,41 @@ +return { + 'TobinPalmer/pastify.nvim', + cmd = { + 'Pastify', + 'PastifyAfter' + }, + -- event = { + -- 'BufReadPost' + -- }, -- Load after the buffer is read, I like to be able to paste right away + keys = { + { + noremap = true, + mode = "x", + 'p', + "PastifyAfter" + }, + { + noremap = true, + mode = "n", + 'p', + "PastifyAfter" + }, + { + noremap = true, + mode = "n", + 'P', + "Pastify" + } + }, + config = function() + require('pastify').setup { + opts = { + local_path = '/res/' + }, + ft = { + markdown = "![image]($IMG$)" + } + } + end +} +