Skip to content

Commit

Permalink
Update the documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Apr 25, 2024
1 parent 59aac3e commit 83d2f75
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ const s:dpp_base = '~/.cache/dpp/'
" NOTE: The plugins must be cloned before.
const s:dpp_src = '~/.cache/dpp/repos/github.com/Shougo/dpp.vim'
const s:denops_src = '~/.cache/dpp/repos/github.com/denops/denops.vim'
"const s:denops_installer = '~/.cache/dpp/repos/github.com/Shougo/dpp-ext-installer'
"const s:denops_installer =
"\ '~/.cache/dpp/repos/github.com/Shougo/dpp-ext-installer'
" Set dpp runtime path (required)
execute 'set runtimepath^=' .. s:dpp_src
Expand Down Expand Up @@ -111,7 +112,8 @@ endif
```lua
local dppSrc = "~/.cache/dpp/repos/github.com/Shougo/dpp.vim"
local denopsSrc = "~/.cache/dpp/repos/github.com/denops/denops.vim"
--local denopsInstaller = "~/.cache/dpp/repos/github.com/Shougo/dpp-ext-installer"
--local denopsInstaller =
-- "~/.cache/dpp/repos/github.com/Shougo/dpp-ext-installer"

vim.opt.runtimepath:prepend(dppSrc)

Expand Down
9 changes: 8 additions & 1 deletion doc/dpp.txt
Original file line number Diff line number Diff line change
Expand Up @@ -619,15 +619,22 @@ EXAMPLES *dpp-examples*
" NOTE: The plugins must be cloned before.
const s:dpp_src = '~/.cache/dpp/repos/github.com/Shougo/dpp.vim'
const s:denops_src = '~/.cache/dpp/repos/github.com/denops/denops.vim'
"const s:denops_installer =
"\ '~/.cache/dpp/repos/github.com/Shougo/dpp-ext-installer'
" Set dpp runtime path (required)
execute 'set runtimepath^=' .. s:dpp_src
if s:dpp_base->dpp#min#load_state()
" NOTE: dpp#make_state() requires denops.vim
" NOTE: denops.vim and dpp plugins are must be added
execute 'set runtimepath^=' .. s:denops_src
"execute 'set runtimepath^=' .. s:denops_installer
autocmd User DenopsReady
\ call dpp#make_state(s:dpp_base, '{TypeScript config file path}')
\ : echohl WarningMsg
\ | echomsg 'dpp load_state() is failed'
\ | echohl NONE
\ | call dpp#make_state(s:dpp_base, '{TypeScript config file path}')
endif
" Attempt to determine the type of a file based on its name and
Expand Down

0 comments on commit 83d2f75

Please sign in to comment.