mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-23 10:41:31 +08:00
docs(readme): update installation
This commit is contained in:
parent
4b0ddcb605
commit
d38c6a5b97
39
bundle/nvim-plug/README.md
vendored
39
bundle/nvim-plug/README.md
vendored
@ -10,6 +10,9 @@
|
|||||||
- [Intro](#intro)
|
- [Intro](#intro)
|
||||||
- [Features](#features)
|
- [Features](#features)
|
||||||
- [Usage](#usage)
|
- [Usage](#usage)
|
||||||
|
- [Installation](#installation)
|
||||||
|
- [Setup nvim-plug](#setup-nvim-plug)
|
||||||
|
- [Add plugins](#add-plugins)
|
||||||
- [Plugin Spec](#plugin-spec)
|
- [Plugin Spec](#plugin-spec)
|
||||||
- [Commands](#commands)
|
- [Commands](#commands)
|
||||||
- [Default UI](#default-ui)
|
- [Default UI](#default-ui)
|
||||||
@ -33,7 +36,39 @@ There is also a [Chinese introduction](https://wsdjeg.net/neovim-plugin-manager-
|
|||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
setup nvim-plug:
|
### Installation
|
||||||
|
|
||||||
|
Clone this repository.
|
||||||
|
|
||||||
|
```
|
||||||
|
git clone https://github.com/wsdjeg/nvim-plug.git D:/bundle_dir/wsdjeg/nvim-plug
|
||||||
|
```
|
||||||
|
|
||||||
|
and append the path of this repository to your neovim neovim runtimepath option:
|
||||||
|
|
||||||
|
init.lua
|
||||||
|
|
||||||
|
```lua
|
||||||
|
vim.opt.runtimepath:append('D:/bundle_dir/wsdjeg/nvim-plug')
|
||||||
|
```
|
||||||
|
|
||||||
|
To install nvim-plug automatically:
|
||||||
|
|
||||||
|
```lua
|
||||||
|
if vim.fn.isdirectory('D:/bundle_dir/wsdjeg/nvim-plug') == 0 then
|
||||||
|
vim.fn.system({
|
||||||
|
'git',
|
||||||
|
'clone',
|
||||||
|
'--depth',
|
||||||
|
'1',
|
||||||
|
'https://github.com/wsdjeg/nvim-plug.git',
|
||||||
|
'D:/bundle_dir/wsdjeg/nvim-plug',
|
||||||
|
})
|
||||||
|
end
|
||||||
|
vim.opt.runtimepath:append('D:/bundle_dir/wsdjeg/nvim-plug')
|
||||||
|
```
|
||||||
|
|
||||||
|
### Setup nvim-plug
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
require('plug').setup({
|
require('plug').setup({
|
||||||
@ -57,7 +92,7 @@ require('plug').setup({
|
|||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
add plugins:
|
### Add plugins
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
require('plug').add({
|
require('plug').add({
|
||||||
|
Loading…
Reference in New Issue
Block a user