grim/micro-hggutter

Initial revision
draft default tip
2020-07-31, Gary Kramlich
0b09ac19ece5
Parents d36f70303788
Children
Initial revision
  • +1 -0
    README.md
  • +2 -1
    main.lua
  • +9 -0
    repo.json
  • --- /dev/null Thu Jan 01 00:00:00 1970 +0000
    +++ b/README.md Fri Jul 31 00:08:23 2020 -0500
    @@ -0,0 +1,1 @@
    +Adds support for diffgutter for mercurial repositories.
    --- a/main.lua Thu Jul 30 23:54:09 2020 -0500
    +++ b/main.lua Fri Jul 31 00:08:23 2020 -0500
    @@ -3,9 +3,10 @@
    local os = import("os")
    local filepath = import("path/filepath")
    local shell = import("micro/shell")
    +local micro = import("micro")
    function onBufferOpen(buf)
    - if buf.Settings["hggutter"] and (not buf.Type.Scratch) and (buf.Path ~= "") then
    + if buf.Settings["diffgutter"] and (not buf.Type.Scratch) and (buf.Path ~= "") then
    local _, err = os.Stat(buf.AbsPath)
    if err == nil then
    local dirName, fileName = filepath.Split(buf.AbsPath)
    --- /dev/null Thu Jan 01 00:00:00 1970 +0000
    +++ b/repo.json Fri Jul 31 00:08:23 2020 -0500
    @@ -0,0 +1,9 @@
    +[
    + {
    + "Name": "hggutter",
    + "Description": "adds diffgutter support for mercurial",
    + "Website": "https://keep.imfreedom.org/grim/micro-hggutter",
    + "Tags": ["gutter", "diff", "mercurial"]
    + }
    +]
    +