From 0cb5f5627312f50ce089f785ec42b55a85f30ce7 Mon Sep 17 00:00:00 2001 From: Ilian <92159488+IliHanSoLow@users.noreply.github.com> Date: Mon, 2 Dec 2024 07:24:23 +0100 Subject: [PATCH] Made Lazy config use opts instead of config (#75) * Made Lazy config use opts instead of config This is just a minor change to comply to https://lazy.folke.io/spec#spec-setup * add an comment to explain opts = {} --------- Co-authored-by: chomosuke --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 4832f05..f502128 100644 --- a/README.md +++ b/README.md @@ -26,9 +26,7 @@ https://github.com/chomosuke/typst-preview.nvim/assets/38484873/9f8ecf0f-aa1c-4e 'chomosuke/typst-preview.nvim', lazy = false, -- or ft = 'typst' version = '1.*', - config = function() - require 'typst-preview'.setup {} - end, + opts = {}, -- lazy.nvim will implicitly calls `setup {}` } ```