We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b278fc2 commit 39e6fefCopy full SHA for 39e6fef
lua/nvim-tree/help.lua
@@ -119,14 +119,20 @@ local function compute()
119
-- increase desc if lines are shorter than the header
120
max_desc = math.max(max_desc, #head_lhs + #head_rhs1 - max_lhs)
121
122
- -- header, not padded
123
- local hl = { { "NvimTreeRootFolder", 0, 0, #head_lhs } }
+ -- header text, not padded
124
local lines = {
125
head_lhs .. string.rep(" ", max_desc + max_lhs - #head_lhs - #head_rhs1 + 2) .. head_rhs1,
126
string.rep(" ", max_desc + max_lhs - #head_rhs2 + 2) .. head_rhs2,
127
}
128
local width = #lines[1]
129
+ -- header highlight, assume one character keys
130
+ local hl = {
131
+ { "NvimTreeFolderName", 0, 0, #head_lhs },
132
+ { "NvimTreeFolderName", 0, width - 1, width },
133
+ { "NvimTreeFolderName", 1, width - 1, width },
134
+ }
135
+
136
-- mappings, left padded 1
137
local fmt = string.format(" %%-%ds %%-%ds", max_lhs, max_desc)
138
for i, l in ipairs(mappings) do
0 commit comments