Skip to content

Commit

Permalink
Made Lazy config use opts instead of config (#75)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
IliHanSoLow and chomosuke authored Dec 2, 2024
1 parent e3f20aa commit 0cb5f56
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}`
}
```

Expand Down

0 comments on commit 0cb5f56

Please sign in to comment.