let s:dpp_dir = stdpath("data") . '/dpp'
let $BASE_DIR = stdpath("config")
execute 'set runtimepath+=' . s:dpp_dir . '/repos/github.com/Shougo/dpp.vim'
execute 'set runtimepath+=' . s:dpp_dir . '/repos/github.com/Shougo/dpp-ext-toml'
execute 'set runtimepath+=' . s:dpp_dir . '/repos/github.com/vim-denops/denops.vim'
autocmd User DenopsReady call dpp#make_state(s:dpp_dir, expand('$BASE_DIR/config.ts'))
import {
BaseConfig,
ConfigReturn,
ContextBuilder,
Dpp,
Plugin,
} from "https://deno.land/x/[email protected]/types.ts";
import { Denops, fn } from "https://deno.land/x/[email protected]/deps.ts";
export class Config extends BaseConfig {
override async config(args: {
denops: Denops;
contextBuilder: ContextBuilder;
basePath: string;
dpp: Dpp;
}): Promise<ConfigReturn> {
const [context, options] = await args.contextBuilder.get(args.denops);
await args.dpp.extAction(args.denops, context, options, "toml", "load", {
path: await fn.expand(args.denops, "$BASE_DIR/dpp_ft.toml"),
options: { lazy: false },
});
return {
plugins: [] as Plugin[],
};
}
}
[denops] Failed to handle message 2,invoke,dispatch,dpp,makeState,/home/{username}/.local/share/nvim-dpp-toml/dpp,/home/{username}/.config/nvim-dpp-toml/config.ts,nvim TypeError: Cannot read properties of undefined (reading 'map')
[denops] at Object.callback (file:///home/{username}/.local/share/nvim-dpp-toml/dpp/repos/github.com/Shougo/dpp-ext-toml/denops/@dpp-exts/toml.ts:41:38)
[denops] at eventLoopTick (ext:core/01_core.js:183:11)
[denops] at async Dpp.extAction (file:///home/{username}/.local/share/nvim-dpp-toml/dpp/repos/github.com/Shougo/dpp.vim/denops/dpp/dpp.ts:98:17)
[denops] at async Config.config (file:///home/{username}/.config/nvim-dpp-toml/config.ts#128.640317:19:5)
[denops] at async Object.makeState (file:///home/{username}/.local/share/nvim-dpp-toml/dpp/repos/github.com/Shougo/dpp.vim/denops/dpp/app.ts#1264.5072559999999:55:28)
[denops] at async dispatch (https://deno.land/x/[email protected]/dispatcher.ts:36:12)
[denops] at async Session.#dispatch (https://deno.land/x/[email protected]/session.ts:244:22)
[denops] at async Session.#handleRequestMessage (https://deno.land/x/[email protected]/session.ts:271:33)