Skip to content

Commit

Permalink
add configuration of optional plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Sep 5, 2024
1 parent 2cad0e5 commit a1c7d1e
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions lua/astrocommunity/completion/avante-nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,36 @@ return {
},
},
opts = {},
specs = { -- configure optional plugins
{ -- if copilot.lua is available, default to copilot provider
"zbirenbaum/copilot.lua",
optional = true,
specs = {
{
"yetone/avante.nvim",
opts = {
provider = "copilot",
},
},
},
},
{
-- make sure `Avante` is added as a filetype
"MeanderingProgrammer/render-markdown.nvim",
optional = true,
opts = function(_, opts)
if not opts.file_types then opts.filetypes = { "markdown" } end
opts.file_types = require("astrocore").list_insert_unique(opts.file_types, { "Avante" })
end,
},
{
-- make sure `Avante` is added as a filetype
"OXY2DEV/markview.nvim",
optional = true,
opts = function(_, opts)
if not opts.filetypes then opts.filetypes = { "markdown", "quarto", "rmd" } end
opts.filetypes = require("astrocore").list_insert_unique(opts.filetypes, { "Avante" })
end,
},
},
}

0 comments on commit a1c7d1e

Please sign in to comment.