yuki-yano / denops-lazy.nvim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

denops-lazy.nvim

Plugin for lazy load of denops.vim plugin with lazy.nvim.

Usage

Execute the load function of denops-lazy.nvim in the config property of lazy.nvim.

require('denops-lazy').setup({
  -- setting default options
  -- wait_load = true,
  -- wait_server = true,
  -- wait_server_delay = 10,
  -- wait_server_retry_limit = 100,
})
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

About

License:MIT License


Languages

Language:Lua 100.0%