Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Vim compatibility!
- Loading branch information
Showing
4 changed files
with
53 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
if has('nvim') | ||
finish | ||
endif | ||
|
||
let s:ghost = yarp#py3('ghost_wrapper') | ||
|
||
func! GhostNotify(event, buffer) | ||
return s:ghost.call('ghost_notify', a:event, a:buffer) | ||
endfunc | ||
|
||
com! -nargs=0 GhostStart call s:ghost.call('server_start') | ||
com! -nargs=0 GhostStop call s:ghost.call('server_stop') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from ghost import Ghost as _Ghost | ||
import vim | ||
|
||
_obj = _Ghost(vim) | ||
|
||
def server_start(*args): | ||
return _obj.server_start(args, '') | ||
|
||
def server_stop(*args): | ||
return _obj.server_stop(args, '') | ||
|
||
def ghost_notify(*args): | ||
return _obj.ghost_notify(args) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters