Skip to content
Permalink
Browse files

automatically load _before.py and _after.py to allow hooking into GS …

…initialisation
  • Loading branch information...
DisposaBoy committed Jul 11, 2018
1 parent f8adbc8 commit d06235b5a96d9eff4bc34e214d767432e7a86d89
Showing with 12 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +4 −0 GoSublime.py
  3. +3 −0 _after.py
  4. +3 −0 _before.py
@@ -1,3 +1,5 @@
_before.py
_after.py
bin/**
pkg/**
!.keep
@@ -22,16 +22,20 @@
print("GoSublime: %s" % execErr)

def loadable_mods():
from . import _before
from . import _after
from .gosubl import gs
from .gosubl import sh
from .gosubl import margo
from .gosubl import mg9

return [
('_before', _before),
('gs', gs),
('sh', sh),
('margo', margo),
('mg9', mg9),
('_after', _after),
]

def plugin_loaded():
@@ -0,0 +1,3 @@

def gs_init(m={}):
pass
@@ -0,0 +1,3 @@

def gs_init(m={}):
pass

0 comments on commit d06235b

Please sign in to comment.
You can’t perform that action at this time.