Closed nabezokodaikon closed 10 months ago
Warning: I will close the issue without the minimal init.vim and the reproduction instructions.
After installing dpp.vim, the plugin will not be reflected unless you start it twice by following the steps below from the first start.
After installing the plugin, restart neovim and the plugin will be reflected.
dpp.vim version (SHA1): 128deab06c62ba1947f69c8979e587f1c3498d59
128deab06c62ba1947f69c8979e587f1c3498d59
denops.vim version (SHA1): ea7370bf5d323e83ee13ccba35f56e06db5753e1
ea7370bf5d323e83ee13ccba35f56e06db5753e1
deno version(deno -V output): deno 1.37.2
deno -V
deno 1.37.2
OS: Mac
neovim/Vim :version output:
:version
NVIM v0.10.0-dev-1467+g5cefec734-Homebrew Build type: Release LuaJIT 2.1.1697887905
directory structure
~/.config └── nvim ├── dpp.toml ├── dpp.ts └── init.lua
init.lua
vim.cmd('syntax off') vim.cmd('filetype off') vim.cmd('filetype plugin indent off') local dpp_base = vim.env.HOME .. '/.cache/dpp' local dpp_repo = dpp_base .. '/repos' local dpp_src = dpp_repo .. '/github.com/Shougo/dpp.vim' local denops_src = dpp_repo .. '/github.com/vim-denops/denops.vim' vim.opt.runtimepath:prepend(dpp_src) if vim.fn.isdirectory(dpp_src) ~= 1 then os.execute('git clone https://github.com/Shougo/dpp.vim ' .. dpp_src) end if vim.fn.isdirectory(denops_src) ~= 1 then os.execute('git clone https://github.com/vim-denops/denops.vim ' .. denops_src) end local plugins = { 'Shougo/dpp-ext-installer', 'Shougo/dpp-ext-local', 'Shougo/dpp-ext-lazy', 'Shougo/dpp-ext-toml', 'Shougo/dpp-protocol-git', } for k, v in pairs(plugins) do local url = 'https://github.com/' .. v local repo = dpp_repo .. '/github.com/' .. v vim.opt.runtimepath:append(repo) if vim.fn.isdirectory(repo) ~= 1 then os.execute('git clone ' .. url .. ' ' .. repo) end end if vim.call('dpp#min#load_state', dpp_base) then vim.opt.runtimepath:prepend(denops_src) vim.api.nvim_create_autocmd('User', { pattern = 'DenopsReady', callback = function() vim.call('dpp#make_state', dpp_base, '~/.config/nvim/dpp.ts') end, }) end vim.o.background = 'dark' vim.cmd('colorscheme gruvbox') vim.cmd('syntax on') vim.cmd('filetype on') vim.cmd('filetype plugin indent on')
dpp.ts
import { BaseConfig, ContextBuilder, Dpp, Plugin, } from "https://deno.land/x/dpp_vim@v0.0.7/types.ts"; import { Denops, } from "https://deno.land/x/dpp_vim@v0.0.7/deps.ts"; export class Config extends BaseConfig { override async config(args: { denops: Denops; contextBuilder: ContextBuilder; basePath: string; dpp: Dpp; }): Promise<{ plugins: Plugin[]; stateLines: string[]; }> { type Toml = { plugins: Plugin[]; }; type LazyMakeStateResult = { plugins: Plugin[]; stateLines: string[]; }; args.contextBuilder.setGlobal({ protocols: ["git"], }); const [context, options] = await args.contextBuilder.get(args.denops); const tomls: Toml[] = []; tomls.push( await args.dpp.extAction( args.denops, context, options, "toml", "load", { path: `~/.config/nvim/dpp.toml`, options: { lazy: false, }, }, ) as Toml, ); const recordPlugins: Record<string, Plugin> = {}; tomls.forEach((toml) => { for (const plugin of toml.plugins) { recordPlugins[plugin.name] = plugin; } }); const lazyResult = await args.dpp.extAction( args.denops, context, options, "lazy", "makeState", { plugins: Object.values(recordPlugins), }, ) as LazyMakeStateResult; return { plugins: lazyResult.plugins, stateLines: lazyResult.stateLines, }; } }
[[plugins]] repo = 'ellisonleao/gruvbox.nvim'
$ nvim
:call dpp#async_ext_action('installer', 'install')
:q
$nvim
I will fix it later.
Fixed. Please update.
Confirmed. Thank you.
Warning: I will close the issue without the minimal init.vim and the reproduction instructions.
Problems summary
After installing dpp.vim, the plugin will not be reflected unless you start it twice by following the steps below from the first start.
Expected
After installing the plugin, restart neovim and the plugin will be reflected.
Environment Information
dpp.vim version (SHA1):
128deab06c62ba1947f69c8979e587f1c3498d59
denops.vim version (SHA1):
ea7370bf5d323e83ee13ccba35f56e06db5753e1
deno version(
deno -V
output):deno 1.37.2
OS: Mac
neovim/Vim
:version
output:Provide a minimal init.vim/vimrc without plugin managers (Required!)
directory structure
init.lua
dpp.ts
How to reproduce the problem from neovim/Vim startup (Required!)
$ nvim
(start neovim):call dpp#async_ext_action('installer', 'install')
(install plugin):q
(quit neovim)$nvim
(start neovim again)