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

This commit is contained in:
Daniel Fichtinger 2025-01-23 19:20:06 -05:00
parent c8853df267
commit 4cb468c2f8
2 changed files with 5 additions and 8 deletions

View file

@ -15,18 +15,13 @@ local function util(dir)
vim.cmd("normal! zz")
end
end
local override = false
local override = true
if override then
vim.keymap.set("n", "}", function()
require("orgmode").action("org_mappings.next_visible_heading")
vim.cmd("normal! zz")
util("next")
end)
vim.keymap.set({ "n", "x" }, "{", function()
local mode = vim.api.nvim_get_mode()
require("orgmode").action("org_mappings.previous_visible_heading")
if mode.mode == "n" then
vim.cmd("normal! zz")
end
util("previous")
end)
end
-- vim.api.nvim_create_autocmd({ "CursorMoved" }, {

View file

@ -21,6 +21,8 @@ return {
org_timestamp_down = "<C-a>",
org_timestamp_up = "<C-i>",
org_return = false,
org_next_visible_heading = false,
org_previous_visible_heading = true,
},
},
}