https://github.com/yuki-yano/denops-lazy.nvim
https://github.com/yuki-yano/denops-lazy.nvim
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/yuki-yano/denops-lazy.nvim
- Owner: yuki-yano
- License: mit
- Created: 2023-01-17T12:00:18.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-29T07:07:57.000Z (5 months ago)
- Last Synced: 2025-04-13T06:13:00.738Z (3 months ago)
- Language: Lua
- Size: 3.91 KB
- Stars: 11
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# denops-lazy.nvim
Plugin for lazy load of [denops.vim](https://github.com/vim-denops/denops.vim) plugin with [lazy.nvim](https://github.com/folke/lazy.nvim).
## Usage
Execute the `load` function of denops-lazy.nvim in the `config` property of lazy.nvim.
```lua
require('denops-lazy').setup({
-- setting default options
-- wait_load = true,
-- wait_server = true,
-- wait_server_delay = 10,
-- wait_server_retry_limit = 100,
})
``````lua
return {
{ 'vim-denops/denops.vim', event = { 'VeryLazy' } },
{
'yuki-yano/fuzzy-motion.vim',
dependencies = {
{ 'vim-denops/denops.vim' },
},
cmd = { 'FuzzyMotion' },
config = function()
require('denops-lazy').load('fuzzy-motion.vim')
end,
},
}
```## Option
The `setup` function argument or `load` function second argument of load specifies options for loading.
### `wait_load`
Run `denops#plugin#wait` after loading a plugin and wait for the plugin to complete loading.
default: `true`
### `wait_server`
Wait for startup if the denops server has not completed startup.
default: `true`
### `wait_server_delay`
Time to wait for the denops to start (milliseconds)
default: `10`
### `wait_server_retry_limit`
Number of times to wait for denops to start
default: `100`