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.
desc
1 parent dcef81d commit 086a391Copy full SHA for 086a391
lua/neo-tree/ui/renderer.lua
@@ -824,7 +824,7 @@ local set_buffer_mappings = function(state)
824
local desc
825
if type(func) == "table" then
826
for key, value in pairs(func) do
827
- if key ~= "command" and key ~= 1 and key ~= "config" and key ~= "desc" then
+ if key ~= "command" and key ~= 1 and key ~= "config" then
828
map_options[key] = value
829
end
830
@@ -834,6 +834,7 @@ local set_buffer_mappings = function(state)
834
835
if type(func) == "string" then
836
resolved_mappings[cmd] = { text = func }
837
+ map_options.desc = map_options.desc or func
838
vfunc = state.commands[func .. "_visual"]
839
func = state.commands[func]
840
elseif type(func) == "function" then
0 commit comments