fix(mappings): change close pum to C-x

Old C-e mapping interferes with emacs style
This commit is contained in:
2025-02-09 12:55:30 +01:00
parent 3cb179e5c8
commit 0161ce0a4d
+2 -6
View File
@@ -35,12 +35,8 @@ local close_pum = function()
end end
end end
vim.keymap.set("n", "<C-e>", function() vim.keymap.set({ "n", "i" }, "<C-x>", function()
return close_pum() or "<C-e>" return close_pum()
end, { expr = true })
vim.keymap.set("i", "<C-e>", function()
return close_pum() or "<C-o>$"
end, { expr = true }) end, { expr = true })
vim.keymap.set("n", "<C-w>q", ":bp | bd#<CR>") vim.keymap.set("n", "<C-w>q", ":bp | bd#<CR>")