doc: update install instructions
Some checks are pending
quality / changes (push) Waiting to run
quality / Lua Format Check (push) Blocked by required conditions
quality / Lua Lint Check (push) Blocked by required conditions
quality / Lua Type Check (push) Blocked by required conditions
quality / Markdown Format Check (push) Blocked by required conditions
test / Test (Neovim nightly) (push) Waiting to run
test / Test (Neovim stable) (push) Waiting to run
Some checks are pending
quality / changes (push) Waiting to run
quality / Lua Format Check (push) Blocked by required conditions
quality / Lua Lint Check (push) Blocked by required conditions
quality / Lua Type Check (push) Blocked by required conditions
quality / Markdown Format Check (push) Blocked by required conditions
test / Test (Neovim nightly) (push) Waiting to run
test / Test (Neovim stable) (push) Waiting to run
This commit is contained in:
parent
bf461f6844
commit
4d5d166f87
1 changed files with 5 additions and 6 deletions
11
README.md
11
README.md
|
|
@ -46,9 +46,8 @@ luarocks install canola.nvim
|
||||||
|
|
||||||
**Q: How do I migrate from `stevearc/oil.nvim`?**
|
**Q: How do I migrate from `stevearc/oil.nvim`?**
|
||||||
|
|
||||||
Change the plugin source and replace `setup()` with `vim.g.canola` in `init`.
|
Simply change the plugin source from `stevearc/oil.nvim` to
|
||||||
The configuration table is identical — only the entry point changes. For
|
`barretruth/oil.nvim`.
|
||||||
example, with [lazy.nvim](https://github.com/folke/lazy.nvim):
|
|
||||||
|
|
||||||
Before (`stevearc/oil.nvim`):
|
Before (`stevearc/oil.nvim`):
|
||||||
|
|
||||||
|
|
@ -62,14 +61,14 @@ Before (`stevearc/oil.nvim`):
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
After (`barrettruth/canola.nvim`):
|
After (`barrettruth/oil.nvim`):
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
{
|
{
|
||||||
'barrettruth/canola.nvim',
|
'barrettruth/oil.nvim',
|
||||||
opts = { ... },
|
opts = { ... },
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
require('canola').setup(opts)
|
require('oil').setup(opts)
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue