First, make sure you are actually running neovim and that it’s updated:
neovim
If your neovim version is >= 0.7 Use this command
vim.g.mapleader = " " vim.api.nvim_set_keymap("n", "<leader>pv", ":Ex<CR>", { noremap = true, silent = true })