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

How to get around nil value error in keymap? #376

Open
parthokr opened this issue Jul 4, 2023 · 1 comment
Open

How to get around nil value error in keymap? #376

parthokr opened this issue Jul 4, 2023 · 1 comment

Comments

@parthokr
Copy link

parthokr commented Jul 4, 2023

Neovim: 0.6.1
Environment: Ubuntu 22.04.2 LTS

Attempting to open up neovim results in
Error detected while processing /home/<username>/.config/nvim/init.vim: line 56: E5108: Error executing lua ...cal/share/nvim/plugged/Comment.nvim/lua/Comment/init.lua:95: at tempt to index field 'keymap' (a nil value) stack traceback: ...cal/share/nvim/plugged/Comment.nvim/lua/Comment/init.lua:95: in function 'setup' [string ":lua"]:1: in main chunk Error detected while processing /home/<username>/.local/share/nvim/plugged/Comment.nvim/plugin/Co mment.lua: E5113: Error while calling lua chunk: ...local/share/nvim/plugged/Comment.nvim/plugin/Comment .lua:1: attempt to index field 'keymap' (a nil value) stack traceback: ...local/share/nvim/plugged/Comment.nvim/plugin/Comment.lua:1: in main chunk

Good to mention line 56 from init.vim lua require('Comment').setup()

@mortona42
Copy link

I ran into the same problem.

It was happening with the version of neovim installed with apt (version 6 I think).

Installing the latest version with instructions on neovim.com fixes it.
https://github.com/neovim/neovim/blob/master/INSTALL.md#pre-built-archives-2

Found the answer here: https://stackoverflow.com/questions/76150953/neovim-cant-find-keymap-a-nil-value#answer-76179877

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants