File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 11export type {
22 Context ,
33 Dispatcher ,
4- } from "https://deno.land/x/denops@v0.10/mod.ts" ;
5- export {
6- Denops ,
7- getCacheOrElse ,
8- } from "https://deno.land/x/denops@v0.10/mod.ts" ;
4+ } from "https://deno.land/x/denops_core@v0.10.0/mod.ts" ;
5+ export { Denops } from "https://deno.land/x/denops_core@v0.10.0/mod.ts" ;
Original file line number Diff line number Diff line change 1- import { Context , Denops , Dispatcher , getCacheOrElse } from "../deps.ts" ;
1+ import { Context , Denops , Dispatcher } from "../deps.ts" ;
22import { execute } from "./execute.ts" ;
33import { autocmd , AutocmdHelper } from "./autocmd.ts" ;
44import { VariableHelper } from "./variable.ts" ;
55
66export class Vim {
7+ static instance ?: Vim ;
8+
79 #denops: Denops ;
810
911 readonly g : VariableHelper ;
@@ -22,9 +24,10 @@ export class Vim {
2224 }
2325
2426 static get ( ) : Vim {
25- return getCacheOrElse ( "vim" , ( ) => {
26- return new Vim ( Denops . get ( ) ) ;
27- } ) ;
27+ if ( ! Vim . instance ) {
28+ Vim . instance = new Vim ( Denops . get ( ) ) ;
29+ }
30+ return Vim . instance ;
2831 }
2932
3033 get name ( ) : string {
You can’t perform that action at this time.
0 commit comments