Skip to content

Commit 0b9a83e

Browse files
authored
fix: enable expr mapping option to work by returning value from function (#1193)
1 parent 1cc79b4 commit 0b9a83e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/neo-tree/ui/renderer.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@ local set_buffer_mappings = function(state)
842842
if type(func) == "function" then
843843
resolved_mappings[cmd].handler = function()
844844
state.config = config
845-
func(state)
845+
return func(state)
846846
end
847847
keymap.set(state.bufnr, "n", cmd, resolved_mappings[cmd].handler, map_options)
848848
if type(vfunc) == "function" then

0 commit comments

Comments
 (0)