I have my leader key mapped as
nnoremap <SPACE> <Nop>
let mapleader = " "
Setting up lsp keybindings from lspconfig, there are keybinds defined like
vim.api.nvim_set_keymap('n', '<space>e', '<cmd>lua vim.diagnostic.open_float()<CR>', opts)
Since space is my leader, this doesn't work, so I rewrote it as
vim.api.nvim_set_keymap('n', '<leader>e', '<cmd>lua vim.diagnostic.open_float()<CR>', opts)
However, pressing e does nothing, the outcome is the same as <space>e:
The leader is recognized but when e is pressed, it simply moves the cursor forward to the end of the word which is the default binding for e. binding other keys works fine, only the leader key seems to have this problem.