nvim: Add avante and pastify to disabled_plugins

This commit is contained in:
Andreas Tsouchlos 2025-03-10 09:03:00 +01:00
parent ac9058d3e3
commit 4bc2809648
2 changed files with 60 additions and 0 deletions

View File

@ -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'
}
}

View File

@ -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",
'<leader>p',
"<cmd>PastifyAfter<CR>"
},
{
noremap = true,
mode = "n",
'<leader>p',
"<cmd>PastifyAfter<CR>"
},
{
noremap = true,
mode = "n",
'<leader>P',
"<cmd>Pastify<CR>"
}
},
config = function()
require('pastify').setup {
opts = {
local_path = '/res/'
},
ft = {
markdown = "![image]($IMG$)"
}
}
end
}