From 5851aea868d73a0ff9f759130f2bb8c04dd99d69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Tue, 23 Jan 2024 10:05:02 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9A=99=EF=B8=8F=20config(nvim):=20change=20m?= =?UTF-8?q?arkdown=20heading=20prev=20and=20next=20to=20use=20]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/nvim/after/ftplugin/markdown.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/nvim/after/ftplugin/markdown.lua b/.config/nvim/after/ftplugin/markdown.lua index 17d8911a..cbe31702 100644 --- a/.config/nvim/after/ftplugin/markdown.lua +++ b/.config/nvim/after/ftplugin/markdown.lua @@ -1,2 +1,2 @@ -vim.keymap.set({ "n", "x" }, "", [[/^#\+ .*]], { desc = "Next Heading", buffer = true }) -vim.keymap.set({ "n", "x" }, "", [[?^#\+ .*]], { desc = "Prev Heading", buffer = true }) +vim.keymap.set({ "n", "x" }, "]#", [[/^#\+ .*]], { desc = "Next Heading", buffer = true }) +vim.keymap.set({ "n", "x" }, "[#", [[?^#\+ .*]], { desc = "Prev Heading", buffer = true })