Skip to content

Commit d2b12d6

Browse files
committed
chore: format
1 parent 144bce7 commit d2b12d6

File tree

2 files changed

+22
-21
lines changed

2 files changed

+22
-21
lines changed

lua/nvim-tree/renderer/git.lua

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,40 +12,40 @@ local function build_icons_table()
1212
["CM"] = { { icon = M.icon_state.icons.git_icons.unstaged, hl = "NvimTreeGitDirty" } },
1313
[" T"] = { { icon = M.icon_state.icons.git_icons.unstaged, hl = "NvimTreeGitDirty" } },
1414
["MM"] = {
15-
{ icon = M.icon_state.icons.git_icons.staged, hl = "NvimTreeGitStaged" },
16-
{ icon = M.icon_state.icons.git_icons.unstaged, hl = "NvimTreeGitDirty" },
15+
{ icon = M.icon_state.icons.git_icons.staged, hl = "NvimTreeGitStaged" },
16+
{ icon = M.icon_state.icons.git_icons.unstaged, hl = "NvimTreeGitDirty" },
1717
},
1818
["MD"] = {
19-
{ icon = M.icon_state.icons.git_icons.staged, hl = "NvimTreeGitStaged" },
19+
{ icon = M.icon_state.icons.git_icons.staged, hl = "NvimTreeGitStaged" },
2020
},
2121
["A "] = {
22-
{ icon = M.icon_state.icons.git_icons.staged, hl = "NvimTreeGitStaged" },
22+
{ icon = M.icon_state.icons.git_icons.staged, hl = "NvimTreeGitStaged" },
2323
},
2424
["AD"] = {
25-
{ icon = M.icon_state.icons.git_icons.staged, hl = "NvimTreeGitStaged" },
25+
{ icon = M.icon_state.icons.git_icons.staged, hl = "NvimTreeGitStaged" },
2626
},
2727
[" A"] = {
28-
{ icon = M.icon_state.icons.git_icons.untracked, hl = "NvimTreeGitNew" },
28+
{ icon = M.icon_state.icons.git_icons.untracked, hl = "NvimTreeGitNew" },
2929
},
3030
-- not sure about this one
3131
["AA"] = {
32-
{ icon = M.icon_state.icons.git_icons.unmerged, hl = "NvimTreeGitMerge" },
33-
{ icon = M.icon_state.icons.git_icons.untracked, hl = "NvimTreeGitNew" },
32+
{ icon = M.icon_state.icons.git_icons.unmerged, hl = "NvimTreeGitMerge" },
33+
{ icon = M.icon_state.icons.git_icons.untracked, hl = "NvimTreeGitNew" },
3434
},
3535
["AU"] = {
36-
{ icon = M.icon_state.icons.git_icons.unmerged, hl = "NvimTreeGitMerge" },
37-
{ icon = M.icon_state.icons.git_icons.untracked, hl = "NvimTreeGitNew" },
36+
{ icon = M.icon_state.icons.git_icons.unmerged, hl = "NvimTreeGitMerge" },
37+
{ icon = M.icon_state.icons.git_icons.untracked, hl = "NvimTreeGitNew" },
3838
},
3939
["AM"] = {
40-
{ icon = M.icon_state.icons.git_icons.staged, hl = "NvimTreeGitStaged" },
41-
{ icon = M.icon_state.icons.git_icons.unstaged, hl = "NvimTreeGitDirty" },
40+
{ icon = M.icon_state.icons.git_icons.staged, hl = "NvimTreeGitStaged" },
41+
{ icon = M.icon_state.icons.git_icons.unstaged, hl = "NvimTreeGitDirty" },
4242
},
4343
["??"] = { { icon = M.icon_state.icons.git_icons.untracked, hl = "NvimTreeGitNew" } },
4444
["R "] = { { icon = M.icon_state.icons.git_icons.renamed, hl = "NvimTreeGitRenamed" } },
4545
[" R"] = { { icon = M.icon_state.icons.git_icons.renamed, hl = "NvimTreeGitRenamed" } },
4646
["RM"] = {
47-
{ icon = M.icon_state.icons.git_icons.unstaged, hl = "NvimTreeGitDirty" },
48-
{ icon = M.icon_state.icons.git_icons.renamed, hl = "NvimTreeGitRenamed" },
47+
{ icon = M.icon_state.icons.git_icons.unstaged, hl = "NvimTreeGitDirty" },
48+
{ icon = M.icon_state.icons.git_icons.renamed, hl = "NvimTreeGitRenamed" },
4949
},
5050
["UU"] = { { icon = M.icon_state.icons.git_icons.unmerged, hl = "NvimTreeGitMerge" } },
5151
["UD"] = { { icon = M.icon_state.icons.git_icons.unmerged, hl = "NvimTreeGitMerge" } },
@@ -55,22 +55,24 @@ local function build_icons_table()
5555
["RD"] = { { icon = M.icon_state.icons.git_icons.deleted, hl = "NvimTreeGitDeleted" } },
5656
["DD"] = { { icon = M.icon_state.icons.git_icons.deleted, hl = "NvimTreeGitDeleted" } },
5757
["DU"] = {
58-
{ icon = M.icon_state.icons.git_icons.deleted, hl = "NvimTreeGitDeleted" },
59-
{ icon = M.icon_state.icons.git_icons.unmerged, hl = "NvimTreeGitMerge" },
58+
{ icon = M.icon_state.icons.git_icons.deleted, hl = "NvimTreeGitDeleted" },
59+
{ icon = M.icon_state.icons.git_icons.unmerged, hl = "NvimTreeGitMerge" },
6060
},
6161
["!!"] = { { icon = M.icon_state.icons.git_icons.ignored, hl = "NvimTreeGitIgnored" } },
6262
dirty = { { icon = M.icon_state.icons.git_icons.unstaged, hl = "NvimTreeGitDirty" } },
6363
}
6464
end
6565

66-
local function empty() return "" end
66+
local function empty()
67+
return ""
68+
end
6769
local function nil_() end
6870

6971
local function warn_status(git_status)
7072
utils.warn(
7173
'Unrecognized git state "'
72-
.. git_status
73-
.. '". Please open up an issue on https://github.com/kyazdani42/nvim-tree.lua/issues with this message.'
74+
.. git_status
75+
.. '". Please open up an issue on https://github.com/kyazdani42/nvim-tree.lua/issues with this message.'
7476
)
7577
end
7678

@@ -110,7 +112,7 @@ local git_hl = {
110112
[" T"] = "NvimTreeFileDirty",
111113
["MM"] = "NvimTreeFileDirty",
112114
["AM"] = "NvimTreeFileDirty",
113-
dirty = "NvimTreeFileDirty",
115+
dirty = "NvimTreeFileDirty",
114116
["A "] = "NvimTreeFileNew",
115117
["??"] = "NvimTreeFileNew",
116118
["AU"] = "NvimTreeFileMerge",

lua/nvim-tree/renderer/init.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ if icon_state.show_file_icon then
105105
end
106106
end
107107

108-
109108
local picture = {
110109
jpg = true,
111110
jpeg = true,

0 commit comments

Comments
 (0)