Closed uhooi closed 9 months ago
It works for me.
I have tested below vimrc.
" Set dpp base path (required)
const s:dpp_base = expand('~/.cache/uhooi/')
if !isdirectory(s:dpp_base)
call mkdir(s:dpp_base, 'p')
endif
" Copy my dpp config files
const s:dpp_config_file = '~/work/test/dpp_uhooi.ts'
" Set dpp source path (required)
const s:dpp_src = 'github.com/Shougo/dpp.vim'
if !isdirectory(s:dpp_base .. 'repos/github.com/Shougo')
call mkdir(s:dpp_base .. 'repos/github.com/Shougo', 'p')
endif
" Set denops source path
const s:denops_src = 'github.com/vim-denops/denops.vim'
if !isdirectory(s:dpp_base .. 'repos/github.com/vim-denops/')
call mkdir(s:dpp_base .. 'repos/github.com/vim-denops/', 'p')
endif
" Set dpp extensions and protocols path
const s:dpp_plugins = [
\ 'github.com/Shougo/dpp-ext-installer',
\ 'github.com/Shougo/dpp-ext-lazy',
\ 'github.com/Shougo/dpp-ext-toml',
\ 'github.com/Shougo/dpp-protocol-git',
\]
" Clone repository and set dpp runtime path (required)
set runtimepath^=~/work/dpp.vim
" Clone repository and set plugin runtime path
for plugin in s:dpp_plugins
let dir = s:dpp_base .. 'repos/' .. plugin
if !isdirectory(dir)
execute '!git clone https://' .. plugin dir
endif
execute 'set runtimepath^=' .. dir
endfor
if dpp#min#load_state(s:dpp_base)
" Clone repository and set denops runtime path
const s:denops_dir = s:dpp_base .. 'repos/' .. s:denops_src
if !isdirectory(s:denops_dir)
execute '!git clone https://' .. s:denops_src s:denops_dir
endif
execute 'set runtimepath^=' .. s:denops_dir
autocmd User DenopsReady
\ : echohl WarningMsg
\ | echomsg 'dpp load_state() is failed'
\ | echohl NONE
\ | call dpp#make_state(s:dpp_base, s:dpp_config_file)
endif
autocmd User Dpp:makeStatePost
\ : echohl WarningMsg
\ | echomsg 'dpp make_state() is done'
\ | echohl NONE
I have tested both Vim and neovim.
% ls -la ~/.cache/uhooi/
total 20
drwxr-xr-x 5 shougo shougo 4096 11月 18 21:38 ./
drwxr-xr-x 48 shougo shougo 4096 11月 18 21:29 ../
drwxr-xr-x 3 shougo shougo 4096 11月 18 21:36 nvim/
drwxr-xr-x 3 shougo shougo 4096 11月 18 21:29 repos/
drwxr-xr-x 3 shougo shougo 4096 11月 18 21:38 vim/
Run
:call dpp#async_ext_action('installer', 'install')
You must load denops.vim
before the function call.
Run vim -u NONE -N in terminal.
Run :source ./plugins.vim in Vim.
It is wrong. The denops.vim loading is when VimEnter
.
dpp.vim must be load when vimrc loading.
So it must be:
vim -Nu ./plugins.vim
Oh.. thx!!
Fix plugins.vim and run vim -Nu ./plugins.vim
, vim
directory is generated.
But the following error occurs.
Messages maintainer: The Vim Project
dpp load_state() is failed
dpp make_state() is done
Why...?
It is not the error.
load_state()
is failed in the first. Because make_state()
is not executed yet.
dpp make_state() is done
And make_state()
is called.
Warning: I will close the issue without the minimal init.vim and the reproduction instructions.
Problems summary
No
vim
directory is created ins:dpp_base
.Expected
A
vim
directory is created ins:dpp_base
.Environment Information
dpp.vim version (SHA1):
a89d225cded43d1492c202118b5702f7341eb1bc
denops.vim version (SHA1):
8b53173370d3c2285abb34569b8d00b73d06eaa3
deno version(
deno -V
output):deno 1.38.2
OS: macOS 14.0(23A344)
neovim/Vim
:version
output:Provide a minimal init.vim/vimrc without plugin managers (Required!)
plugins.vim
https://github.com/uhooi/dotfiles/blob/fbb2061193530e418a1041e6810f0b10ad7946fb/.vim/config/plugins.vimdpp/dpp.ts
https://github.com/uhooi/dotfiles/blob/fbb2061193530e418a1041e6810f0b10ad7946fb/.vim/config/dpp/dpp.tsdpp/dpp.toml
https://github.com/uhooi/dotfiles/blob/fbb2061193530e418a1041e6810f0b10ad7946fb/.vim/config/dpp/dpp.tomlHow to reproduce the problem from neovim/Vim startup (Required!)
vim -u NONE -N
in terminal.:source ./plugins.vim
in Vim.vim
directory is created ins:dpp_base
.:set rtp
.:call dpp#async_ext_action('installer', 'install')
.Screenshot (if possible)
Upload the log messages by
:redir
and:message
(if errored)messages.txt