Skip to content
Discussion options

You must be logged in to vote

I ran into this and it took a bit of hunting to find out what was happening, but I think I've got it. What's probably going on for both of you is that you have copied the default config.lazy file from the official installation documentation for Lazy.nvim. It includes the following lines which overwrite your mapleader setting.

-- Make sure to setup `mapleader` and `maplocalleader` before
-- loading lazy.nvim so that mappings are correct.
-- This is also a good place to setup other settings (vim.opt)
vim.g.mapleader = " "
vim.g.maplocalleader = "\\"

To fix this you can either:

  1. remove the vim.g.leader lines above from your config.lazy file and set it earlier in your init.lua or similar.
  2. edi…

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@abeldekat
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jsatk
Comment options

Answer selected by jsatk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants