Leader Commands Not Working

I don’t have a solution but can only say that for me on nvim 0.10.1 using the exact same setting for vim.g.mapleader works fine. I suggest to disable all plugins and see if it is still a problem. Also, because you are a new user, please see this pinned post: Use https://github.com/neovim/neovim/discussions