vim.g.mapleader='<BS>' not working

I also tried '\<BS>', but it does not work as well.

Try

vim.g.mapleader = vim.api.nvim_replace_termcodes('<BS>', false, false, true)
2 Likes