Posted on :: Tags: , , , ,

I noticed it’s not possible to unmap the F1 key in Neovim using vim.api.nvim_del_keymap if it’s not already registered. Instead, you can simply override it with something like:

vim.keymap.set({ "n" }, "<F1>", ":Telescope buffers<CR>", { noremap = true, desc = "Find buffer" })