-
I'm trying to migrate from |
Beta Was this translation helpful? Give feedback.
Answered by
cseickel
Mar 29, 2022
Replies: 2 comments 5 replies
-
I looked but couldn't find an explanation. What do those commands do exactly? Are they like what was discussed in these threads? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Interesting. Here is how you can add those mappings: require('neo-tree').setup({
window = {
mappings = {
["J"] = function(state)
local tree = state.tree
local node = tree:get_node()
local siblings = tree:get_nodes(node:get_parent_id())
local renderer = require('neo-tree.ui.renderer')
renderer.focus_node(state, siblings[#siblings]:get_id())
end,
["K"] = function(state)
local tree = state.tree
local node = tree:get_node()
local siblings = tree:get_nodes(node:get_parent_id())
local renderer = require('neo-tree.ui.renderer')
renderer.focus_node(state, siblings[1]:get_id())
end
}
}
})
|
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
fuelen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Interesting. Here is how you can add those mappings: