If vim.g.mapleader or vim.g.maplocalleader have more than one character the replacement in the notation does not work correctly (only replacing one char) which then leads to an error as the length between the internal representation and notation does not match. This is also the issue for https://github.com/folke/which-key.nvim/issues/450
Now in case of any (local)leader having multiple characters we replace them in a loop to ensure that everything matches
If vim.g.mapleader or vim.g.maplocalleader have more than one character the replacement in the notation does not work correctly (only replacing one char) which then leads to an error as the length between the internal representation and notation does not match. This is also the issue for https://github.com/folke/which-key.nvim/issues/450
Now in case of any (local)leader having multiple characters we replace them in a loop to ensure that everything matches