From 16b07b9213793345b3244ae8dff9b4d061e85b80 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Thu, 15 Aug 2024 10:23:01 +0200 Subject: [PATCH] nvim: fix keybindings --- files/config/nvim/lua/config/keymaps.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/files/config/nvim/lua/config/keymaps.lua b/files/config/nvim/lua/config/keymaps.lua index 2fb2a64..5fc7f2d 100644 --- a/files/config/nvim/lua/config/keymaps.lua +++ b/files/config/nvim/lua/config/keymaps.lua @@ -12,8 +12,8 @@ vim.keymap.set({ "n" }, "", "gcc", { remap = true }) vim.keymap.set({ "v" }, "", "gc", { remap = true }) vim.keymap.set({ "n" }, "", "gcgc", { remap = true }) -vim.keymap.set("n", "", ",", {}) -vim.keymap.set("n", "zz", "zt", {}) +vim.keymap.set("n", "", ",", { remap = true }) +vim.keymap.set("n", "zz", "zt", { remap = true }) -vim.keymap.set("n", "[d", ":lua vim.diagnostic.goto_prev { float = false }", {}) -vim.keymap.set("n", "]d", ":lua vim.diagnostic.goto_next { float = false }", {}) +vim.keymap.set("n", "[d", ":lua vim.diagnostic.goto_prev { float = false }", { remap = true }) +vim.keymap.set("n", "]d", ":lua vim.diagnostic.goto_next { float = false }", { remap = true })