Compare commits

...

2 Commits

Author SHA1 Message Date
Michael Welford
64994ef0f6 Comment ref to neogit repo 2024-02-02 11:05:08 +10:30
Michael Welford
0210e4924a More neogit tweaks. 2024-02-02 11:04:34 +10:30

View File

@ -5,30 +5,35 @@ local gitsigns = require('falcon.plugins.common.gitsigns')
local styles = require('falcon.styles')
local diff = require('falcon.extras.common.diff')
-- see https://github.com/NeogitOrg/neogit/blob/master/lua/neogit/lib/hl.lua
local p = lush(function()
return {
NeogitSectionHeader {modern.Keyword},
NeogitUnmergedInto {NeogitSectionHeader},
NeogitBranch {modern.Normal},
NeogitBranchHead {},
NeogitRemote {modern.Normal},
NeogitTagName {modern.Normal},
NeogitTagDistance {modern.Comment},
NeogitHunkHeader {modern.Comment},
NeogitHunkHeaderHighlight {modern.Comment},
NeogitChangeModified {gitsigns.GitSignsChange},
NeogitChangeBothModified {NeogitChangeModified},
NeogitChangeUpdated {NeogitChangeModified},
NeogitChangeAdded {gitsigns.GitSignsAdd},
NeogitChangeCopied {NeogitChangeAdded},
NeogitChangeRenamed {NeogitChangeAdded},
NeogitChangeNewFile {NeogitChangeAdded},
NeogitChangeDeleted {gitsigns.GitSignsDelete},
NeogitDiffDelete {diff.diffRemoved},
NeogitDiffAdd {diff.diffAdded},
NeogitDiffDeleteHighlight {diff.diffRemoved},
NeogitDiffAddHighlight {diff.diffAdded},
}
return {
NeogitSectionHeader {modern.Keyword},
NeogitUnmergedInto {NeogitSectionHeader},
NeogitBranch {modern.Normal},
NeogitBranchHead {modern.Normal},
NeogitRemote {modern.Normal},
NeogitTagName {modern.Normal},
NeogitTagDistance {modern.Comment},
NeogitHunkHeader {modern.Comment},
NeogitHunkHeaderHighlight {modern.Comment},
NeogitChangeModified {gitsigns.GitSignsChange},
NeogitChangeBothModified {NeogitChangeModified},
NeogitChangeUpdated {NeogitChangeModified},
NeogitChangeAdded {gitsigns.GitSignsAdd},
NeogitChangeCopied {NeogitChangeAdded},
NeogitChangeRenamed {NeogitChangeAdded},
NeogitChangeNewFile {NeogitChangeAdded},
NeogitChangeDeleted {gitsigns.GitSignsDelete},
NeogitDiffDelete {diff.diffRemoved},
NeogitDiffAdd {diff.diffAdded},
NeogitDiffDeleteHighlight {diff.diffRemoved},
NeogitDiffAddHighlight {diff.diffAdded},
NeogitCommitViewHeader {modern.Keyword},
NeogitFilePath {modern.Normal},
NeogitDiffHeader {modern.Normal, gui = styles.bold},
NeogitDiffHeaderHighlight {modern.MatchParen, gui = styles.bold},
}
end)
return p