AutoYADM commit: 2025-01-22 11:55:08
This commit is contained in:
parent
b4bc442d1a
commit
7b1d1158e8
1 changed files with 14 additions and 8 deletions
|
@ -7,14 +7,20 @@ vim.api.nvim_create_autocmd({ "InsertLeave", "TextChanged" }, {
|
||||||
buffer = 0,
|
buffer = 0,
|
||||||
command = "silent! write",
|
command = "silent! write",
|
||||||
})
|
})
|
||||||
|
local override = false
|
||||||
|
if override then
|
||||||
vim.keymap.set("n", "}", function()
|
vim.keymap.set("n", "}", function()
|
||||||
require("orgmode").action("org_mappings.next_visible_heading")
|
require("orgmode").action("org_mappings.next_visible_heading")
|
||||||
vim.cmd("normal! zz")
|
vim.cmd("normal! zz")
|
||||||
end)
|
end)
|
||||||
vim.keymap.set("n", "{", function()
|
vim.keymap.set({ "n", "x" }, "{", function()
|
||||||
|
local mode = vim.api.nvim_get_mode()
|
||||||
require("orgmode").action("org_mappings.previous_visible_heading")
|
require("orgmode").action("org_mappings.previous_visible_heading")
|
||||||
|
if mode.mode == "n" then
|
||||||
vim.cmd("normal! zz")
|
vim.cmd("normal! zz")
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
|
end
|
||||||
-- vim.api.nvim_create_autocmd({ "CursorMoved" }, {
|
-- vim.api.nvim_create_autocmd({ "CursorMoved" }, {
|
||||||
-- buffer = 0,
|
-- buffer = 0,
|
||||||
-- callback = function()
|
-- callback = function()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue