11import type { Denops } from "@denops/core" ;
22import * as itertools from "@lambdalisue/itertools" ;
33import { unreachable } from "@lambdalisue/unreachable" ;
4- import * as batch from "../batch/mod .ts" ;
4+ import { batch } from "../batch/batch .ts" ;
55import * as vimFn from "../function/vim/mod.ts" ;
66import * as nvimFn from "../function/nvim/mod.ts" ;
77
@@ -154,7 +154,7 @@ async function vimDecorate(
154154 props . add ( [ deco . line , deco . column , deco . line , deco . column + deco . length ] ) ;
155155 decoMap . set ( propType , props ) ;
156156 }
157- await batch . batch ( denops , async ( denops ) => {
157+ await batch ( denops , async ( denops ) => {
158158 for ( const highlight of hs ) {
159159 const propType = toPropType ( highlight ) ;
160160 await vimFn . prop_type_add ( denops , propType , {
@@ -184,7 +184,7 @@ async function vimUndecorate(
184184 p . type . startsWith ( "denops_std:buffer:decoration:decorate:" )
185185 ) . map ( ( p ) => p . id ) ,
186186 ) ;
187- await batch . batch ( denops , async ( denops ) => {
187+ await batch ( denops , async ( denops ) => {
188188 for ( const propId of propIds ) {
189189 await vimFn . prop_remove ( denops , { id : propId , bufnr, all : true } ) ;
190190 }
@@ -201,7 +201,7 @@ async function nvimDecorate(
201201 "denops_std:buffer:decoration:decorate" ,
202202 ) ;
203203 for ( const chunk of itertools . chunked ( decorations , 1000 ) ) {
204- await batch . batch ( denops , async ( denops ) => {
204+ await batch ( denops , async ( denops ) => {
205205 for ( const deco of chunk ) {
206206 await nvimFn . nvim_buf_add_highlight (
207207 denops ,
0 commit comments