Skip to content

Commit

Permalink
Fix convert lua_xxx keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Oct 24, 2023
1 parent 7ce2261 commit f3b5254
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion denops/dpp/dpp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,12 @@ function initPlugin(plugin: Plugin, basePath: string): Plugin {
const key of Object.keys(plugin).filter((key) => key.startsWith("lua_"))
) {
const hook = key.replace(/^lua_/, "hook_");
hooks[hook] = `lua <<EOF\n${plugin[key as keyof typeof plugin]}\nEOF\n`;
const lua = `lua <<EOF\n${plugin[key as keyof typeof plugin]}\nEOF\n`;
if (hooks[hook]) {
hooks[hook] += "\n" + lua;
} else {
hooks[hook] = lua;
}
}
// Convert head backslashes
for (
Expand Down

0 comments on commit f3b5254

Please sign in to comment.