Skip to content

Commit

Permalink
fix: it's unable that one.nvim be managed by plugin manager
Browse files Browse the repository at this point in the history
  • Loading branch information
adoyle-h committed Sep 27, 2023
1 parent 24608e6 commit 0c102a2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 28 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ You can use `:OneUpdate` to update one.nvim to latest. Please read [the "Update"

### New Features

- one.nvim and impatient.nvim are managed by plugin manager ([4cc9beb](https://github.com/adoyle-h/one.nvim/commit/4cc9beb3e33e388b331472d5d0fd708cb196ed6d))
- ~~one.nvim and impatient.nvim are managed by plugin manager~~ (Sorry, it can't) ([4cc9beb](https://github.com/adoyle-h/one.nvim/commit/4cc9beb3e33e388b331472d5d0fd708cb196ed6d))
- add keymap "`<space>`O" to toggle the outline nav window ([5af612f](https://github.com/adoyle-h/one.nvim/commit/5af612fba045271382a7c2c575d93baf8ae4e3a5))

### Bug Fixes
Expand Down
14 changes: 2 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,24 +138,14 @@ Function signature completion

## Update

The source codes of one.nvim and [plugin manager](#plugin-manager) are managed by plugin manager.
The source codes of one.nvim is not managed by plugin manager.

You can also update them by lua functions or commands.
You can update them by lua functions or commands.

- Update one.nvim: `:OneUpdate one` or `:lua one.update('one')`
- Update pm: `:OneUpdate pm` or `:lua one.update('pm')`
- Update all (one.nvim + pm): `:OneUpdate` or `:OneUpdate all` or `:lua one.update()`

If you want to control their updates by yourself, set the options below.

```lua
require('one').setup {
plugins = {
{ 'adoyle-h/one.nvim', disable = true },
}
}
```

## [FAQ](./doc/faq/README.md)

## Configuration
Expand Down
14 changes: 2 additions & 12 deletions README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,24 +139,14 @@

## 更新

one.nvim 以及[插件管理器](#插件管理器)的源码由插件管理器管理
one.nvim 源码不由插件管理器管理

你也可以使用 lua 函数或者命令来更新它们。
你可以使用 lua 函数或者命令来更新它们。

- 更新 one.nvim: `:OneUpdate one``:lua one.update('one')`
- 更新 pm: `:OneUpdate pm``:lua one.update('pm')`
- 更新所有 (one.nvim + pm): `:OneUpdate``:OneUpdate all``:lua one.update()`

如果你想要由自己控制它们的更新,设置下面的选项。

```lua
require('one').setup {
plugins = {
{ 'adoyle-h/one.nvim', disable = true },
}
}
```

## [常见问题](./doc/faq/README.md)

## 配置
Expand Down
3 changes: 0 additions & 3 deletions lua/one/plugins.lua
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
---@diagnostic disable-next-line: unused-local
return function(Plug, Load, config)
------- External plugins -------
Plug { 'adoyle-h/one.nvim', rtp = config.ONE_DIR }

------- Basic required plugins -------
Load 'vim-options'
Plug { 'lunarmodules/Penlight', id = 'pl' }
Expand Down

0 comments on commit 0c102a2

Please sign in to comment.