AutoYADM commit: 2025-01-22 11:55:08

This commit is contained in:
Daniel Fichtinger 2025-01-22 11:55:08 -05:00
parent b4bc442d1a
commit 7b1d1158e8

View file

@ -7,14 +7,20 @@ vim.api.nvim_create_autocmd({ "InsertLeave", "TextChanged" }, {
buffer = 0, buffer = 0,
command = "silent! write", command = "silent! write",
}) })
vim.keymap.set("n", "}", function() local override = false
require("orgmode").action("org_mappings.next_visible_heading") if override then
vim.cmd("normal! zz") vim.keymap.set("n", "}", function()
end) require("orgmode").action("org_mappings.next_visible_heading")
vim.keymap.set("n", "{", function() vim.cmd("normal! zz")
require("orgmode").action("org_mappings.previous_visible_heading") end)
vim.cmd("normal! zz") vim.keymap.set({ "n", "x" }, "{", function()
end) 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
end)
end
-- vim.api.nvim_create_autocmd({ "CursorMoved" }, { -- vim.api.nvim_create_autocmd({ "CursorMoved" }, {
-- buffer = 0, -- buffer = 0,
-- callback = function() -- callback = function()