Skip to content

Commit

Permalink
fix: do not use deprecated prettym_print
Browse files Browse the repository at this point in the history
  • Loading branch information
danielo515 committed Dec 15, 2023
1 parent 335f1ac commit 14d76e9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/vim/Vim.hx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ extern class Fn {
static function executable(binaryName:String):Int;
static function json_encode(value:Dynamic):String;
static function json_decode(json:String):Table< String, Dynamic >;
public static function has(feature:String):Int;
// static function readfile(fname:String, ?type:String, ?max:Int):LuaArray< String >;
}

Expand Down Expand Up @@ -51,13 +52,17 @@ extern class Loop {
public static function os_uname():Table< String, String >;
}

function is09(): Bool {
return Fn.has('nvim-0.9') == 1;
}

@:native("vim")
extern class Vim {
public static final o:vim.types.Opt;
public static final go:vim.types.GOpt;
public static final g:VimGOpts;
public static final wo:WOpts;
@:native("pretty_print")
// @:native("pretty_print")
static function print(args:Rest< Dynamic >):Void;
static inline function expand(string:ExpandString):String {
return Fn.expand(string);
Expand Down

0 comments on commit 14d76e9

Please sign in to comment.