I am on Mac with nvim v0.9.0. I have the following „init.lua“ config loaded:

vim.g.mapleader = '<Space>'
local keymap = vim.keymap
keymap.set("i","jk","<ESC>") // line with the error

Can someone tell me, why vim.keymap could be a nil value, and how to fix it?

Thanks in advance



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.