docs: add lazy.nvim installation FAQ (#125)
## Problem Users attempt to lazy-load diffs.nvim with `event`, `ft`, `lazy`, or `keys` options, which interferes with the plugin's own `FileType` autocmd registered at startup. ## Solution Add a FAQ entry with a correct lazy.nvim snippet using `init` and a note explaining that the plugin lazy-loads itself.
This commit is contained in:
parent
028ba5314e
commit
a00993820f
1 changed files with 16 additions and 0 deletions
16
README.md
16
README.md
|
|
@ -40,6 +40,22 @@ luarocks install diffs.nvim
|
|||
|
||||
## FAQ
|
||||
|
||||
**How do I install with lazy.nvim?**
|
||||
|
||||
```lua
|
||||
{
|
||||
'barrettruth/diffs.nvim',
|
||||
init = function()
|
||||
vim.g.diffs = {
|
||||
...
|
||||
}
|
||||
end,
|
||||
}
|
||||
```
|
||||
|
||||
Do not lazy load `diffs.nvim` with `event`, `lazy`, `ft`, `config`, or `keys` to
|
||||
control loading - `diffs.nvim` lazy-loads itself.
|
||||
|
||||
**Does diffs.nvim support vim-fugitive/Neogit?**
|
||||
|
||||
Yes. Enable it in your config:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue