Shougo / dpp.vim

Dark powered plugin manager for Vim/neovim
MIT License
128 stars 5 forks source link

`dpp-plugin-option-merged is v:false` does not work #25

Closed qitoy closed 2 months ago

qitoy commented 2 months ago

Warning: I will close the issue without the minimal init.vim and the reproduction instructions.

Problems summary

I set non-lazy plugin merged = false, but plugin was merged.

Expected

I do that, plugin is not merged (.dpp does not contain the plugin and &rtp contains the plugin).

Environment Information

Provide a minimal init.vim/vimrc without plugin managers (Required!)

/home/qitoy/.config/dpp_merged/init.vim

let $BASE = '<script>:p:h'->expand()
const s:dpp_base = $BASE .. '/dpp'

function InitPlugin(plugin)
  let dir = s:dpp_base .. '/repos/github.com/' .. a:plugin
  execute 'set runtimepath^=' .. dir
endfunction

call InitPlugin('Shougo/dpp.vim')

if s:dpp_base->dpp#min#load_state()
  call InitPlugin('Shougo/dpp-protocol-git')
  call InitPlugin('vim-denops/denops.vim')

  call denops#server#wait_async({
  \-> dpp#make_state(s:dpp_base, '$BASE/config.ts'->expand())
  \})
endif

/home/qitoy/.config/dpp_merged/config.ts

import {
  BaseConfig,
  ConfigArguments,
  ConfigReturn,
} from "https://deno.land/x/dpp_vim@v0.3.0/types.ts";

export class Config extends BaseConfig {
  override config(args: ConfigArguments): ConfigReturn {
    args.contextBuilder.setGlobal({ protocols: ["git"] });
    return {
      plugins: [{
        repo: "vim-denops/denops.vim",
        name: "denops.vim",
        merged: false,
      }],
    };
  }
}

How to reproduce the problem from neovim/Vim startup (Required!)

  1. NVIM_APPNAME=dpp_merged nvim twice

Screenshot (if possible)

Upload the log messages by :redir and :message (if errored)

after NVIM_APPNAME=dpp_merged nvim

:echo &rtp

/home/qitoy/.config/dpp_merged/dpp/repos/github.com/Shougo/dpp.vim,/home/qitoy/.config/dpp_merged,/home/qitoy/.config/dpp_merged/dpp/nvim/.dpp,/nix/store/k61lhzgn97r8z0qlxkjlcn33cfzblxd2-neovim-unwrapped-0.10.0/share/nvim/runtime,/nix/store/k61lhzgn97r8z0qlxkjlcn33cfzblxd2-neovim-unwrapped-0.10.0/share/nvim/runtime/pack/dist/opt/matchit,/nix/store/k61lhzgn97r8z0qlxkjlcn33cfzblxd2-neovim-unwrapped-0.10.0/lib/nvim,/home/qitoy/.config/dpp_merged/dpp/nvim/.dpp/after

:echo dpp#get('denops.vim')

{'rtp': '/home/qitoy/.config/dpp_merged/dpp/repos/github.com/vim-denops/denops.vim', 'lazy': v:false, 'name': 'denops.vim', 'repo': 'vim-denops/denops.vim', 'protocol': 'git', 'merged': v:true, 'sourced': v:true, 'path': '/home/qitoy/.config/dpp_merged/dpp/repos/github.com/vim-denops/denops.vim'} 

$ ls dpp/nvim/.dpp/autoload

denops  denops.vim  health
Shougo commented 2 months ago

OK. I have fixed it.