mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-08-10 22:42:00 +02:00
Add bicep & bicepparam icons
This commit is contained in:
committed by
Jesse Duffield
parent
ab31991e13
commit
08bd36ea78
@@ -98,6 +98,8 @@ var extIconMap = map[string]IconProperties{
|
|||||||
".csv": {Icon: "\uf1c3", Color: 113}, //
|
".csv": {Icon: "\uf1c3", Color: 113}, //
|
||||||
".csx": {Icon: "\U000f031b", Color: 58}, //
|
".csx": {Icon: "\U000f031b", Color: 58}, //
|
||||||
".cxx": {Icon: "\ue61d", Color: 74}, //
|
".cxx": {Icon: "\ue61d", Color: 74}, //
|
||||||
|
".bicep": {Icon: "\ue63b", Color: 32}, //
|
||||||
|
".bicepparam": {Icon: "\ue63b", Color: 103}, //
|
||||||
".d": {Icon: "\ue7af", Color: 28}, //
|
".d": {Icon: "\ue7af", Color: 28}, //
|
||||||
".dart": {Icon: "\ue798", Color: 25}, //
|
".dart": {Icon: "\ue798", Color: 25}, //
|
||||||
".db": {Icon: "\uf1c0", Color: 188}, //
|
".db": {Icon: "\uf1c0", Color: 188}, //
|
||||||
@@ -326,7 +328,12 @@ func patchFileIconsForNerdFontsV2() {
|
|||||||
extIconMap[".vue"] = IconProperties{Icon: "\ufd42", Color: 113} // ﵂
|
extIconMap[".vue"] = IconProperties{Icon: "\ufd42", Color: 113} // ﵂
|
||||||
}
|
}
|
||||||
|
|
||||||
func IconForFile(name string, isSubmodule bool, isLinkedWorktree bool, isDirectory bool) IconProperties {
|
func IconForFile(
|
||||||
|
name string,
|
||||||
|
isSubmodule bool,
|
||||||
|
isLinkedWorktree bool,
|
||||||
|
isDirectory bool,
|
||||||
|
) IconProperties {
|
||||||
base := filepath.Base(name)
|
base := filepath.Base(name)
|
||||||
if icon, ok := nameIconMap[base]; ok {
|
if icon, ok := nameIconMap[base]; ok {
|
||||||
return icon
|
return icon
|
||||||
|
Reference in New Issue
Block a user