⚙️ config(nvim): change markdown heading prev and next to use ]

This commit is contained in:
Sergio Laín 2024-01-23 10:05:02 +01:00
parent cb36b1bd9b
commit 5851aea868
No known key found for this signature in database
GPG key ID: 14C9B8080681777B

View file

@ -1,2 +1,2 @@
vim.keymap.set({ "n", "x" }, "<C-j>", [[/^#\+ .*<CR>]], { desc = "Next Heading", buffer = true })
vim.keymap.set({ "n", "x" }, "<C-k>", [[?^#\+ .*<CR>]], { desc = "Prev Heading", buffer = true })
vim.keymap.set({ "n", "x" }, "]#", [[/^#\+ .*<CR>]], { desc = "Next Heading", buffer = true })
vim.keymap.set({ "n", "x" }, "[#", [[?^#\+ .*<CR>]], { desc = "Prev Heading", buffer = true })