1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-13 22:47: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,24 +10,23 @@
## Usage
```lua
require("plug").setup({
bundle_dir = "D:\\bundle_dir\\",
require('plug').setup({
bundle_dir = 'D:/bundle_dir',
})
require("plug").add({
{
"wsdjeg/scrollbar.vim",
events = { "VimEnter" },
config = function() end,
},
{
"wsdjeg/flygrep.nvim",
cmds = { "FlyGrep" },
config = function()
require("flygrep").setup()
end,
},
require('plug').add({
{
'wsdjeg/scrollbar.vim',
events = { 'VimEnter' },
config = function() end,
},
{
'wsdjeg/flygrep.nvim',
cmds = { 'FlyGrep' },
config = function()
require('flygrep').setup()
end,
},
})
```
@ -39,6 +38,7 @@ require("plug").add({
| `cmds` | `table<string>`, commands lazy loading |
| `events` | `table<string>`, events lazy loading |
| `on_ft` | `table<string>`, filetypes lazy loading |
| `type` | `string`, plugin type including `color`, `plugin` |
## Commands