Replies: 1 comment
-
This seems to work for me as expected return {
"nvim-tree/nvim-tree.lua",
version = "*",
lazy = false,
dependencies = {
"nvim-tree/nvim-web-devicons",
},
config = function()
require("nvim-tree").setup({})
end,
keys = {
{
"<leader>n",
function()
require("nvim-tree.api").tree.toggle()
end,
},
},
}, Probably some kind of mistake with the way you defined your mapping? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm rather new to Neovim and Lazy but perhaps somebody is still willing to help a noob. I installed nvim-tree using lazy, however I'm getting an error when toggling the file browse (
E486: Pattern not found: nvim-tree-api.tree.toggle
). I initially though this is a problem with nvim-tree and opened a discussion there: nvim-tree/nvim-tree.lua#3163 . There I was told to ask for help at Lazy. So does somebody has an idea what I'm doing wrong?Edit:
I removed it from Lazy and switched to nvim-neo-tree which works with the example config provide here https://lazy.folke.io/spec/lazy_loading#%EF%B8%8F-lazy-key-mappings. Funnily it seems nvim-tree is not fully removed, if I enter
<leader> n
I still get the errorE486: Pattern not found: nvim-tree-api.tree.toggle
.Beta Was this translation helpful? Give feedback.
All reactions