1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-14 04:07:59 +08:00

docs(nvim-plug): update readme

This commit is contained in:
Eric Wong 2025-02-04 23:57:15 +08:00
parent e80046552b
commit 7071473003
No known key found for this signature in database
GPG Key ID: 41BB7053E835C848

View File

@ -10,22 +10,21 @@
## Usage ## Usage
```lua ```lua
require("plug").setup({ require('plug').setup({
bundle_dir = 'D:/bundle_dir',
bundle_dir = "D:\\bundle_dir\\",
}) })
require("plug").add({ require('plug').add({
{ {
"wsdjeg/scrollbar.vim", 'wsdjeg/scrollbar.vim',
events = { "VimEnter" }, events = { 'VimEnter' },
config = function() end, config = function() end,
}, },
{ {
"wsdjeg/flygrep.nvim", 'wsdjeg/flygrep.nvim',
cmds = { "FlyGrep" }, cmds = { 'FlyGrep' },
config = function() config = function()
require("flygrep").setup() require('flygrep').setup()
end, end,
}, },
}) })
@ -39,6 +38,7 @@ require("plug").add({
| `cmds` | `table<string>`, commands lazy loading | | `cmds` | `table<string>`, commands lazy loading |
| `events` | `table<string>`, events lazy loading | | `events` | `table<string>`, events lazy loading |
| `on_ft` | `table<string>`, filetypes lazy loading | | `on_ft` | `table<string>`, filetypes lazy loading |
| `type` | `string`, plugin type including `color`, `plugin` |
## Commands ## Commands