nvim: fix keybindings

This commit is contained in:
Daniel Lundin 2024-08-15 10:23:01 +02:00
parent 51ad6503ee
commit 16b07b9213
Signed by: dln
SSH key fingerprint: SHA256:dQy1Xj3UiqJYpKR5ggQ2bxgz4jCH8IF+k3AB8o0kmdI

View file

@ -12,8 +12,8 @@ vim.keymap.set({ "n" }, "<c-_>", "gcc", { remap = true })
vim.keymap.set({ "v" }, "<c-_>", "gc", { remap = true })
vim.keymap.set({ "n" }, "<Leader><c-_>", "gcgc", { remap = true })
vim.keymap.set("n", "<Tab>", "<Space>,", {})
vim.keymap.set("n", "zz", "zt", {})
vim.keymap.set("n", "<Tab>", "<Space>,", { remap = true })
vim.keymap.set("n", "zz", "zt", { remap = true })
vim.keymap.set("n", "[d", ":lua vim.diagnostic.goto_prev { float = false }<Enter>", {})
vim.keymap.set("n", "]d", ":lua vim.diagnostic.goto_next { float = false }<Enter>", {})
vim.keymap.set("n", "[d", ":lua vim.diagnostic.goto_prev { float = false }<Enter>", { remap = true })
vim.keymap.set("n", "]d", ":lua vim.diagnostic.goto_next { float = false }<Enter>", { remap = true })