mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
fix(edgy): neo-tree doesn't open when leader isn't space
The default mapping for this is to use `<leader>` which edgy should respect. This ensures that neo-tree still opens even when leader has been remapped. Otherwise, the top neo-tree window just stays in a loading state. Unfortunately, it seems the `<leader>` isn't a supported keycode for `nvim_input` (or at least it isn't listed in `:help keycodes` and it doesn't seem to work). Getting the leader first, then passing it to `nvim_input` seems to clear this up.
This commit is contained in:
parent
bb36f71b77
commit
fa945816f5
1 changed files with 2 additions and 1 deletions
|
|
@ -61,7 +61,8 @@ return {
|
|||
end,
|
||||
pinned = true,
|
||||
open = function()
|
||||
vim.api.nvim_input("<esc><space>e")
|
||||
local leader = vim.g.mapleader
|
||||
vim.api.nvim_input('<esc>' .. leader .. 'e')
|
||||
end,
|
||||
size = { height = 0.5 },
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue