diff --git a/autoload/dpp/min.vim b/autoload/dpp/min.vim index fe44767..ca211c0 100644 --- a/autoload/dpp/min.vim +++ b/autoload/dpp/min.vim @@ -34,5 +34,6 @@ function dpp#min#_init() abort autocmd! autocmd BufWritePost *.lua,*.vim,*.toml,vimrc,.vimrc \ call dpp#util#_check_files() + autocmd User Dpp:postMakeState : augroup END endfunction diff --git a/denops/dpp/dpp.ts b/denops/dpp/dpp.ts index 3485aca..978bd48 100644 --- a/denops/dpp/dpp.ts +++ b/denops/dpp/dpp.ts @@ -233,6 +233,8 @@ export class Dpp { //console.log(stateLines); //console.log(cacheLines); //console.log(rtps); + + await denops.cmd("doautocmd User Dpp:postMakeState"); } private async getExt( diff --git a/doc/dpp.txt b/doc/dpp.txt index d53d40b..976d5d2 100644 --- a/doc/dpp.txt +++ b/doc/dpp.txt @@ -19,6 +19,7 @@ Exts |dpp-exts| Protocols |dpp-protocols| Protocol option |dpp-protocol-options| Protocol params |dpp-protocol-params| +Autocmds |dpp-autocmds| Create Ext |dpp-create-ext| Ext attributes |dpp-ext-attributes| Create Protocol |dpp-create-protocol| @@ -582,6 +583,16 @@ These are the parameters that each Protocol can have. Please read the Protocol documentation. +============================================================================== +AUTOCMDS *dpp-autocmds* + +dpp.vim defines some |User| autocmds. + + *dpp-autocmd-Dpp:postMakeState* +Dpp:postMakeState + Called after |dpp#make_state()| is finished. + + ============================================================================== CREATE EXT *dpp-create-ext*