Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugins lazily loaded on keys with an identical mapping in config won't show on first request #28

Closed
oblitum opened this issue Dec 20, 2022 · 0 comments · Fixed by #30
Closed
Labels
bug Something isn't working

Comments

@oblitum
Copy link

oblitum commented Dec 20, 2022

Describe the bug

For nvim-tree to show up for example, I have to type leaderk once for it to be internally loaded by lazy.nvim it seems, only then, typing again leaderk will bring the nvim-tree window up.

I have the same behavior replicated for most other plugins I load by keys.

Which version of Neovim are you using?

NVIM v0.8.1 on ArchLinux

To Reproduce
Steps to reproduce the behavior:

  1.  {
         'kyazdani42/nvim-tree.lua', keys = '<leader>k',
         dependencies = 'kyazdani42/nvim-web-devicons',
         config = function()
             vim.cmd [[nnoremap <silent> <leader>k :NvimTreeToggle<cr>]]
         end
     }
    
  2. leaderk (won't show anything)
  3. leaderk (shows nvim-tree)

Expected Behavior

It should be displayed on first request.

@oblitum oblitum added the bug Something isn't working label Dec 20, 2022
@oblitum oblitum changed the title Plugins lazily loaded on keys won't show on first request Plugins lazily loaded on keys with an identical mapping in config won't show on first request Dec 20, 2022
@folke folke closed this as completed in 5298441 Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant