AutoYADM commit: 2025-01-23 19:35:06

This commit is contained in:
Daniel Fichtinger 2025-01-23 19:35:06 -05:00
parent 27d1d1458d
commit 0d4e65f961
2 changed files with 19 additions and 5 deletions

View file

@ -38,16 +38,28 @@ local override = true
if override then if override then
vim.keymap.set("n", "}", function() vim.keymap.set("n", "}", function()
modmap("notsame", "next") modmap("notsame", "next")
end) end, {
silent = true,
buffer = true,
})
vim.keymap.set({ "n", "x" }, "{", function() vim.keymap.set({ "n", "x" }, "{", function()
modmap("notsame", "previous") modmap("notsame", "previous")
end) end, {
silent = true,
buffer = true,
})
vim.keymap.set({ "n", "x" }, "[[", function() vim.keymap.set({ "n", "x" }, "[[", function()
modmap("same", "previous") modmap("same", "previous")
end) end, {
silent = true,
buffer = true,
})
vim.keymap.set({ "n", "x" }, "]]", function() vim.keymap.set({ "n", "x" }, "]]", function()
modmap("same", "next") modmap("same", "next")
end) end, {
silent = true,
buffer = true,
})
end end
-- vim.api.nvim_create_autocmd({ "CursorMoved" }, { -- vim.api.nvim_create_autocmd({ "CursorMoved" }, {
-- buffer = 0, -- buffer = 0,

View file

@ -22,7 +22,9 @@ return {
org_timestamp_up = "<C-i>", org_timestamp_up = "<C-i>",
org_return = false, org_return = false,
org_next_visible_heading = false, org_next_visible_heading = false,
org_previous_visible_heading = true, org_previous_visible_heading = false,
org_forward_heading_same_level = false,
org_backward_heading_same_level = false,
}, },
}, },
} }