File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,8 +35,7 @@ local function pushCmd(opts)
3535 local out = vim .trim ((result .stdout or " " ) .. (result .stderr or " " ))
3636 out = out :gsub (" \n %s+" , " \n " ) -- remove padding
3737 local commitRange = out :match (" %x+%.%.%x+" ) --- @type string | nil
38- -- force-push `+` would get md-lhighlight
39- local ft = opts .forceWithLease and " text" or " markdown"
38+ local ft = opts .forceWithLease and " text" or " markdown" -- force-push has `+` which gets md-highlight
4039
4140 -- notify
4241 if result .code == 0 then
@@ -63,8 +62,7 @@ local function pushCmd(opts)
6362 end
6463 updateStatusline ()
6564 if opts .createGitHubPr then
66- -- deferred to ensrue GitHub has registered the PR
67- vim .defer_fn (createGitHubPr , 1000 )
65+ vim .defer_fn (createGitHubPr , 1000 ) -- deferred so GitHub has registered the PR
6866 end
6967 end )
7068 )
You can’t perform that action at this time.
0 commit comments