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

Failed loading lazyvim.config.keymaps #126

Closed
3 tasks done
joshmedeski opened this issue Jan 25, 2023 · 2 comments · Fixed by #121
Closed
3 tasks done

Failed loading lazyvim.config.keymaps #126

joshmedeski opened this issue Jan 25, 2023 · 2 comments · Fixed by #121
Labels
bug Something isn't working

Comments

@joshmedeski
Copy link
Contributor

Did you check docs and existing issues?

  • I have read all the LazyVim docs
  • I have searched the existing issues of LazyVim
  • I have searched the exsiting issues of plugins related to this issue

Neovim version (nvim -v)

v0.8.2

Operating system/version

MacOS Ventura 13.1 (22C65)

Describe the bug

New issue on startup with v1.3.1 of LazyVim

Failed loading lazyvim.config.keymaps

...l/share/nvim/lazy/LazyVim/lua/lazyvim/config/keymaps.lua:9: attempt to index local 'keys' (a nil value)

# stacktrace:
  - /LazyVim/lua/lazyvim/config/keymaps.lua:9 _in_ **map**
  - /LazyVim/lua/lazyvim/config/keymaps.lua:15
  - /LazyVim/lua/lazyvim/config/init.lua:124
  - /LazyVim/lua/lazyvim/config/init.lua:123 _in_ **load**
  - /LazyVim/lua/lazyvim/config/init.lua:94 _in_ **setup**
  - /LazyVim/lua/lazyvim/config/init.lua:158 _in_ **__index**
  - gitsigns.lua:1
  - ~/.config/nvim/lua/config/lazy.lua:9
  - ~/.config/nvim/init.lua:2

Steps To Reproduce

Run nvim v1.3.1

Expected Behavior

No errors

Repro

No response

@joshmedeski joshmedeski added the bug Something isn't working label Jan 25, 2023
@joshmedeski joshmedeski changed the title bug: Failed loading lazyvim.config.keymaps Jan 25, 2023
@folke
Copy link
Collaborator

folke commented Jan 25, 2023

How do you trigger this? What;s in gitsigngs.lua on line 1? That's not part of LazyVim.

@joshmedeski
Copy link
Contributor Author

Ah, thanks. I was trying to pull in the icons before returning my gitsigns config.

local icons = require("lazyvim.config").icons
return {
  "lewis6991/gitsigns.nvim",
   // ...
}

I guess I can't do it that way.

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.

2 participants