Skip to content

Commit 80b9c58

Browse files
authored
fix(avante-nvim): Check for nil value in opts table for markview.nvim dependency (#1537)
Check if markview.nvim's is empty 1st
1 parent 8ae3804 commit 80b9c58

File tree

1 file changed

+1
-0
lines changed
  • lua/astrocommunity/completion/avante-nvim

1 file changed

+1
-0
lines changed

lua/astrocommunity/completion/avante-nvim/init.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ return {
9898
"OXY2DEV/markview.nvim",
9999
optional = true,
100100
opts = function(_, opts)
101+
if not opts.preview then opts.preview = {} end
101102
if not opts.preview.filetypes then opts.preview.filetypes = { "markdown", "quarto", "rmd" } end
102103
opts.preview.filetypes = require("astrocore").list_insert_unique(opts.preview.filetypes, { "Avante" })
103104
end,

0 commit comments

Comments
 (0)