Skip to content

Commit

Permalink
docs-zh: add config function to setup plugin with lazy and Plug
Browse files Browse the repository at this point in the history
  • Loading branch information
shellRaining committed Aug 4, 2023
1 parent a4d0c42 commit e4fc49c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 6 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,21 @@ use { "shellRaining/hlchunk.nvim" }

### Plug

```lua
Plug "shellRaining/hlchunk.nvim"
```vimscript
call plug#begin()
Plug 'shellRaining/hlchunk.nvim'
call plug#end()
lua << EOF
require("hlchunk").setup({})
EOF
```

### Lazy

```lua
{ "shellRaining/hlchunk.nvim",
{
"shellRaining/hlchunk.nvim",
event = { "UIEnter" },
config = function()
require("hlchunk").setup({})
Expand Down
18 changes: 15 additions & 3 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,26 @@ use { "shellRaining/hlchunk.nvim" }

### Plug

```lua
Plug "shellRaining/hlchunk.nvim"
```vimscript
call plug#begin()
Plug 'shellRaining/hlchunk.nvim'
call plug#end()
lua << EOF
require("hlchunk").setup({})
EOF
```

### Lazy

```lua
{ "shellRaining/hlchunk.nvim", event = { "UIEnter" }, },
{
"shellRaining/hlchunk.nvim",
event = { "UIEnter" },
config = function()
require("hlchunk").setup({})
end
},
```

## 设置
Expand Down

0 comments on commit e4fc49c

Please sign in to comment.