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

This commit is contained in:
Daniel Fichtinger 2025-01-23 19:15:06 -05:00
parent 02c745a218
commit c8853df267

View file

@ -8,6 +8,13 @@ vim.api.nvim_create_autocmd({ "InsertLeave", "TextChanged" }, {
buffer = 0,
command = "silent! write",
})
local function util(dir)
local mode = vim.api.nvim_get_mode()
require("orgmode").action("org_mappings." .. dir .. "_visible_heading")
if mode.mode == "n" then
vim.cmd("normal! zz")
end
end
local override = false
if override then
vim.keymap.set("n", "}", function()
@ -39,3 +46,9 @@ end, { desc = "Trim trailing whitespace" })
-- vim.cmd("%s/\\s\\+$//e")
-- end,
-- })
vim.keymap.set("i", "<S-CR>", function()
require("orgmode").action("org_mappings.meta_return")
end, {
silent = true,
buffer = true,
})