From b6c977e5ed77998ce7002261d280d51784467079 Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Mon, 26 Feb 2024 18:43:05 +0100 Subject: [PATCH] chore: fix formatting --- lua/core/mappings.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/core/mappings.lua b/lua/core/mappings.lua index 1b74dd8..34c4b06 100644 --- a/lua/core/mappings.lua +++ b/lua/core/mappings.lua @@ -29,8 +29,10 @@ vim.keymap.set({ "n", "x", }, "P", '"+P') vim.keymap.set({ "n", "x", }, "+", function () vim.fn.setreg("+", vim.fn.getreg('"')) end) + -- Allow exiting insert mode in terminal by hitting vim.keymap.set("t", "", "") + -- Use :diffput/get instead of normal one to allow staging visual selection vim.keymap.set("n", "dp", vim.cmd.diffput) vim.keymap.set("x", "dp", ":diffput")