Closed 0xDmtri closed 1 month ago
You probably map your leader manually?
What does :verbose nmap <leader>
say?
You probably map your leader manually?
What does
:verbose nmap <leader>
say?
Yh I do it manually before all loads as vim.g.mapleader = " "
and vim.g.maplocalleader = " "
I suppose it is wrong :)
How should I do it instead? Thanks!
What do you map before that exactly? to <nop>
? And why is that?
@0xDmtri I had the same issue.
I had the following line in my config assigning <Space>
to <Nop>
:
vim.keymap.set({ 'n', 'v' }, '<Space>', '<Nop>', { silent = true })
This was after I had set leader to space using:
vim.g.mapleader = " "
vim.g.maplocalleader = " "
Removing the assignment to <nop>
fixed the issue for me.
I just allowed that. But I really wonder why? It seems a lot of people do that, but what does that achieve?
I based my initial config off of kickstart-modular, and it looks like it came from here.
I didn't even notice it till this happened.
Thanks for the quick fix @folke!
What do you map before that exactly? to
<nop>
? And why is that?
but how else can u make space as your leader key? I really dont get the question, sorry.
So everyone just adds that to their config because everyone else does it?
There's no reason to do that. Just remove that line and everything will work the same. It doesn't achieve anything.
Setting vim.g.mapleader = " "
is what sets your leader.
Me neither...
asdf
So, so, weird. I don't get it.
It's so in normal mode for example, your cursor doesnt move to the next character if you are "too slow" to follow up with your space-as-leader keymap.
Did you check docs and existing issues?
Neovim version (nvim -v)
v0.10.0 Release
Operating system/version
Debian 11
Describe the bug
Pressing leader key stopped working. Just nothing happens pretty much.
I rolled back to one commit before e8b454f and all working again.
Steps To Reproduce
Use this commit: e8b454f
Expected Behavior
Seeing options followed by leader key.
Health
Log
No response
Repro